完善程序 ,此程序的功能是:

完善程序:此程序的功能是:从键盘输入字符,若是小写字母,先转换成大写字母再输出,否则将输入字符直接输出。

#include <stdio.h>

main()

{int ch1,ch2;

 while((ch1=getchar())!=EOF)

 if(                             )

 {ch2=ch1-32;

  putchar(ch2);

}

else                   ;

}

ch1 >= 97 || ch1 <= 122

putchar(ch1);

if(ch1>='a' || ch1<='z')

else  putchar(ch1);