从键盘上输入若干字符,直到输入字符“*为止”将其中的小写字母转化为大写字母输出,其他字符原样输出 后面该怎么写,求大神指教
#include "stdio.h"void main() {
char c;
printf("\nPlease input some characters:(end of '*')\n");
while((c=getchar())!='*')
#include "stdio.h" #include "ctype.h" main() { char c; printf("\nPlease input some characters:(end of '*')\n"); while((c=getchar())!='*') { if (islower(c)) c = toupper(c); printf("%c", c); } }