#include<stdio.h>
#include<stdlib.h>
#include<conio.h>
#include<ctype.h>
int main(){
char ch,ch2;
printf("Enter one english char: ");
ch=getche();
ch2=toupper(ch);
printf("\n%c的大寫是%c",ch,ch2);
/*
while(getchar()!='\n'){continue;}
*/
printf("\nEnter one small english char: ");
scanf("%c",&ch);
ch2=tolower(ch);
printf("%c的小寫是%c\n",ch,ch2);
system("pause");
return 0;
}
沒有留言:
張貼留言