1.完成猜数字游戏。
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
void menu() {
printf("**********************************\n");
printf("*********** 1.play **********\n");
printf("*********** 0.exit **********\n");
printf("**********************************\n");
}
void game() {
int random_num = rand()%100 + 1;
int input = 0;
while(1){
printf("请输入猜的数字:");
scanf("%d", &input);
if(input > random_num){
printf("猜大了\n");
}else if(input < random_num){
printf("猜小了\n");
}else if(input == random_num){