モナーのパイソンでゴーゴー

湘南あたりの海辺より

2019-03-13から1日間の記事一覧

コイン投げゲーム

#include <stdio.h>#include <string.h>#include <time.h>#include <stdlib.h> int main(void){ int you;int coin;char muki[][10] = {" ","表","裏"}; srand(time(NULL)); printf("表は1、裏は2、終了は他の値を入力してください。 \n"); while(1){ coin = rand() % 2 + 1; printf("コインを投げ</stdlib.h></time.h></string.h></stdio.h>…