Skip to content

Instantly share code, notes, and snippets.

Created October 4, 2013 12:44
Show Gist options
  • Save anonymous/6825356 to your computer and use it in GitHub Desktop.
Save anonymous/6825356 to your computer and use it in GitHub Desktop.
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