phi I'm a Game Programmer and Frontend Engineer passionate about programming education. Math / C / C++ / C# / JavaScript / HTML5 / CSS3 / Python C言語で数当てゲームを実装 /* * 数当てゲーム */ #include <stdio.h> #include <stdlib.h> #include <time.h> int main(void) { srand((unsigned)time(NULL)); int answer = rand()%100+1; int n = 0; int turn = 0; printf("★ 数当てゲーム ★\n"); while (true) { printf("1~100 の間の数字を入力してください: ")
![phiary](https://cdn-ak-scissors.b.st-hatena.com/image/square/a65732ac9e4edb9b91796ecd05a487d4f69bc75b/height=288;version=1;width=512/https%3A%2F%2Fwww.evernote.com%2Fl%2FAOJ9fz3AOehEdKnBeWlRPWqUQyGNIpXw2iIB%2Fimage.png)