Today is Friday,Maximum temperature only twelve degrees,it is too cold for me.my breakfast is four small steamed stuffed bun, because The breakfast shop big steamed stuffed bun out of stock.

#include <stdio.h>
getchar会读取输入缓冲区剩余的字符,需要一个死循环接收输入缓冲区中多余的字符。
int main()
{
int i=0;
char a[20]={0};
printf("请输入密码\n");
scanf("%s",a);
printf("请确认(Y/N)");
while((i=getchar())!='\n')
{
;
}
i=getchar();
putchar(i);
printf("确认");
return 0;
}
for:
int main()
{
int i=0;
for(i=1;i<=10;i++)
printf("%d ",i);
return 0;
}


.