#include<stdio.h> int main() { char num; while(scanf("%c",&num)==1) { if((num>=65)&&(num<=90)) { num=num+32; printf("%c\n",num); } else if((num>=97)&&(num<=122)) { num=num-32; printf("%c\n",num); } else { ; } } return 0; }
时间: 2024-10-24 10:31:13
#include<stdio.h> int main() { char num; while(scanf("%c",&num)==1) { if((num>=65)&&(num<=90)) { num=num+32; printf("%c\n",num); } else if((num>=97)&&(num<=122)) { num=num-32; printf("%c\n",num); } else { ; } } return 0; }