#include
using namespace std;
#include
int main()
{
srand((unsigned int)time(NULL));
int a = rand() % 100 + 1;
int b;
while(1)
{
cin >> b;
cout <<"b ="<< b << endl;
if(a=b)
{
cout <<"你猜对了"<
}
else if(a {
cout<<"数字过大"<
else
{
cout<<"数字过小"<
}
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)