編程先由計算機想一個1~100之間的數(shù)請人猜?
#include<stdio.h>
#include<stdlib.h>
int main()
{
int n,m;
n=rand()%100;
printf("please input an integer [0,100):\n");
scanf("%d",&m);
if(m!=n)
{
if(m>n)
printf("Wrong!Too high\n");
else if(m<n)
printf("Wrong! Too low\n");
}
else
printf("Right!\n");
}