午夜精品福利视频,亚洲激情专区,免费看a网站,aa毛片,亚洲色图激情小说,亚洲一级毛片,免费一级毛片一级毛片aa

編寫猜數(shù)字小游戲 -電腦資料

電腦資料 時(shí)間:2019-01-01 我要投稿
【m.stanzs.com - 電腦資料】

   

#include <stdio.h>#include <stdlib.h>#include<time.h>int main(){ int num = 0; srand((unsigned)time(NULL)); int ret = rand() % 100 + 1; while (1) {  printf("請(qǐng)猜數(shù)字:>");  scanf_s("%d",&num);  if (num == ret)  {   printf("猜對(duì)了\n");   break;  }  else if (num > ret)  {   printf("猜大了\n");  }  else  {   printf("猜小了\n");  } }  system("pause");  return 0; }

最新文章