prt.c
来自「这是c语言的一个模拟抛银币的正反面游戏」· C语言 代码 · 共 24 行
C
24 行
#include "h.c"
void prt_instructions()
{
printf("%s\n",
"this is the readme before the game. "
"I will flip a coin;you call it.if you"
" call it correctly,you win;otherwise i win"
"0--heads and 1---tails");
}
void prt_final_report(int win, int lose, int how_many)
{
printf("\n%s\n%s%3d\n%s%3d%s%3d\n",
"Final report:",
"number of games that you won: ",win,
"number of games that you lose: ",lose,
"total number of games: ",how_many);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?