大致思路如下。 void main(){ int x,y; while(1){ printf(%s,"请输入正整数:\n"); y = scanf(%d,&x); if(y){ int 【查看更多内容请登录哈】