猜数字.txt
来自「c primer 部分习题答案」· 文本 代码 · 共 17 行
TXT
17 行
#include <stdio.h>
#include <time.h>
int main(void)
{
srand (time(0));
int magic,num;
magic = rand()%100;
printf ("This is a game that you can guess a number from 1 to 100.\n")
printf("please enter the number you choosed:\n")
printf("1.play game.\n")
printf("2.quit the game.\n")
scanf ("%d",&num);
if
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?