Created
October 4, 2013 12:44
-
-
Save anonymous/6825356 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int battleTime=0,slime=2,cake; | |
for(;;) | |
{ | |
battle(slime); | |
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