C语言实现大写字母转小写字母
#include <stdio.h>
int main() { char c; printf('请输入一个大写字母:'); scanf('%c', &c); if(c >= 'A' && c <= 'Z') { printf('该字符的小写字母为:%c\n', c + 32); } else { printf('输入的不是大写字母!\n'); } return 0; }
原文地址: https://www.cveoy.top/t/topic/oJTe 著作权归作者所有。请勿转载和采集!