#include <stdio.h> int main() { char ch; printf("Press a key and then press Enter:\n"); ch = getchar(); if (ch >= 'A' && ch <= 'Z') { ch = ch + 32; } printf("%c\n", ch); return 0; }

C语言:将大写字母转换为小写字母