#include
#include
#include
void main()
{
int ran;
int n;
int count=0;
srand((unsigned)time(NULL));
ran=rand()%100+1;
while(1)
{
printf("Please Input:\n");
scanf("%d",&n);
if(n>100||n<1)
{
printf("Input error\n");
return;
}
if(n {
printf("Input min\n");
count++;
continue;
}else if(n>ran)
{
printf("Input max\n");
count++;
continue;
}else
{
printf("conguratulation!\n");
count++;
break;
}
}
if(count<3)
printf("Very good\n");
else if(count>=3&&count<=5)
printf("Good\n");
else
printf("You can do better\n");
}