/* Note:Your choice is C IDE */ #include<stdio.h> void main() { char x=‘a‘; printf("please input ABC:"); scanf("%c",&x); if( x>=‘A‘ && x<=‘Z‘) { x=x+32; printf("%c\n",x); } else if( x>=‘a‘ && x<=‘z‘) { x=x-32; printf("%c\n",x); } else { printf("input mistake"); } } getch();
时间: 2024-10-05 03:56:35