/* 简单猜数游戏 */ #include<stdio.h> int main(void) { int mynumber=38; int yournumber; printf("Input your number:"); scanf_s("%d",&yournumber); if(yournumber==mynumber) printf("Ok!you are right! "); else if(yournumber>mynumber) printf("Sorry!your number is bigger than my number! "); else printf("Sorry!your number is smaller than my number "); return 0; }