Skip to content

Instantly share code, notes, and snippets.

@jrg94
Created April 23, 2017 17:50
Show Gist options
  • Save jrg94/0ec53deb1c39e891c0f50a3861fa9c04 to your computer and use it in GitHub Desktop.
Save jrg94/0ec53deb1c39e891c0f50a3861fa9c04 to your computer and use it in GitHub Desktop.
public static void tryToWin(int num) {
num++;
if (num >= 6) {
System.out.print("You're a winner");
}
System.out.print("You lose");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment