#include
#include
#include
#define random(x) (rand()%x)
int main(){
srand((int)time(0));
int n=random(1000);
int choose;
while(1){
scanf("%d",&choose);
if(choose==n){
printf("太棒了!\n");
break;
}
else if(choose>n)printf("太高了!\n");
else if(choose
return 0;
}
#include
main()
{
int i,j,a,b;
for(;;)
{
a=rand()%1000;
if(a>=1&&a<=1000)break;
}
for(i=1;;i++)
{
printf("第%d次:",i);
scanf("%d",&b);
if(b>a)printf("太高了!\n");
if(b if(b==a)
{
printf("太棒了!\n");
break;
}
}
}