代码文本:
#include "stdio.h"
int main(int argc,char *argv[]){
int n;
printf("Please enter a positive integer...\n");
while(scanf("%d",&n),n>=1000 || n<1)
printf("Input error. Please enter again: ");
printf("Oh, right, is %d.\n",n);
return 0;
}