📄 猜拳游戏1.txt
字号:
猜拳游戏
#include<stdio.h>
void main()
{int computer;
int you;
printf("input your choose:1.jianzi 2.bu 3.shitou\n");
scanf("%d",&you);
computer=rand()%3+1;
clrscr();
if(you==computer)
printf("same%d %d\n",computer,you);
else if(computer<you)
printf("computer win");
else printf("you win%d %d",computer,you);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -