国内免费自拍视频,日韩在线播放av,亚欧洲精品在线观看,中文色,日韩有码中文字幕在线,岛国午夜视频,日韩欧美精品在线播放

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

電腦資料 時(shí)間:2019-01-01 我要投稿
【m.lalalvj.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; }

最新文章