include<stdio.h>
int main()
{
int ch=0;
while((ch=getchar())!=EOF)//getchar输入输出值;EOF=end of file
{
putchar(ch+32);//putchar打印值
//拿到一个字符
printf("\n");
getchar();//读取字符本身
}
return 0;
}//回车键属于一个字符加32输出为*,在c语言中getchar只能获取一个字符,所以在循环中,需要多加一个getchar吸收多余的字符和空格。