★ Write a program, you can always receive keyboard characters, if it is lowercase characters on the output corresponding uppercase characters, if you receive uppercase characters, the output corresponding lowercase characters, if the number is not output.
#include <stdio.h>int main () {char c;while ((c = GetChar ()) = EOF) {if ((+ <= c) && (c <= 91))/ /uppercase converted to lowercase letter {printf ("%c", C + 32);} else if ((97<= c) && (C <= 123))//lowercase letters are converted to uppercase {printf ("%c", c-32);} else if ((<= c) && (C <= 56))//The number received is not processed {NULL;} else{printf ("\ n"); Re-enter}}return 0 from the new line after the result is obtained;}
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/73/F3/wKiom1YKVI7DD4bZAACJ61ljf3Q213.jpg "title=" Run Test " alt= "Wkiom1ykvi7dd4bzaacj61ljf3q213.jpg"/>
This article is from the "Warm Smile" blog, please be sure to keep this source http://10738469.blog.51cto.com/10728469/1699242
Conversion of uppercase and lowercase letters, C language implementation