打卡7
#include<iostream>
using namespace std;
#include<ctime>
int main()
{
srand((signed int)time(NULL));
int a=rand()%100+1;
while(1)
{
int b=0;
cin>>b;
if(b>a)
{
cout<<"您猜测过大"<<endl;
}
else if(b<a)
{
cout<<"您猜测过小"<<endl;
}
else
{
cout<<"您猜测正确"<<endl;
break;
}
}