⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 猜拳游戏1.txt

📁 c语言 猜拳游戏的原代码就是这个 已经测试成功了呀
💻 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 + -