#include <stdio.h>
int lower(int c);
int main(void){
char s[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
int i = 0;
while (s[i] != '/0') {
printf("%c -> %c/n", s[i], lower(s[i]));
i++;
}
return 0;
}
int lower(int c){
return (c >= 'A' && c<= 'Z') ? c + 'a' - 'A' : c;
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266658.html