Skip to content

Instantly share code, notes, and snippets.

@hirosof
Created August 15, 2010 12:29
Show Gist options
  • Save hirosof/525449 to your computer and use it in GitHub Desktop.
Save hirosof/525449 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main(void){
int a,b=1;
while(b){
printf("1~3までの数字を入力してください。\n");
scanf("%d",&a);
switch(a){
case 1:
printf("中吉\n");
b=0;
break;
case 2:
printf("大吉\n");
b=0;
break;
case 3:
printf("小吉\n");
b=0;
break;
default:
b=1;
break;
}
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment