#include<stdio.h>
#include<stdlib.h>
int main()
{
int a,i;
printf("please input a number between 0 and 100\n");
while((a=scanf("%d",&i))!=1||i<0||i>100)
{while((getchar())!='\n');
printf("input wrong.please input again\n");
}
printf("the number %d is right.",i);
system("pause");
return 0;
}