Skip to content

Instantly share code, notes, and snippets.

@housemeow
Forked from anonymous/102590046蔡薇妮.c
Last active December 24, 2015 16:08
Show Gist options
  • Save housemeow/6825442 to your computer and use it in GitHub Desktop.
Save housemeow/6825442 to your computer and use it in GitHub Desktop.
int battleTime=0,slime=2,cake;
for(;;)
{
battle(slime);
battleTime++;
if(battleTime==1)
{
printf("打完一場戰鬥,還剩下四場");
}
else if(battleTime==2)
{
printf("打完兩場戰鬥,還剩下三場");
}
else if(battleTime==3)
{
printf("打完三場戰鬥,還剩下兩場");
}
else if(battleTime==4)
{
printf("打完四場戰鬥,還剩下一場");
}
else
{
printf("恭喜過關!\n");
cake+=10;
break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment