#include <stdio.h>
#include <stdlib.h>
int main(void)
{
char x;
printf("Please input a char(small or big): ");
scanf("%c", &x);
if(x < 122 && x > 97){
printf("%c\n",(x-32));
}else if(x < 90 && x > 64){
printf("%c\n",(x+32));
}else{
printf("Not a char");
}
system("pause");
return 0;
}
沒有留言:
張貼留言