Skip to content

Instantly share code, notes, and snippets.

@gsmcwhirter
Last active October 20, 2015 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gsmcwhirter/3b523909139509c5f18c to your computer and use it in GitHub Desktop.
Save gsmcwhirter/3b523909139509c5f18c to your computer and use it in GitHub Desktop.
int n = 2;
int count = 1;
while (count < 5)
{
count *= n;
if (count / 2 < 2)
{
System.out.println("Hello");
}
else
{
while (count < 7)
{
count += 1;
}
}
System.out.println("The count is " + count);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment