Skip to content

Instantly share code, notes, and snippets.

@siburu
Last active March 18, 2016 15:14
Show Gist options
  • Save siburu/76b64e90220c5ffb4aff to your computer and use it in GitHub Desktop.
Save siburu/76b64e90220c5ffb4aff to your computer and use it in GitHub Desktop.
No tricky zundoko program in Java
class Zundoko {
public static void main(String args[]) {
java.util.Random rnd = new java.util.Random();
int zun;
do {
for (zun = 0; rnd.nextBoolean(); zun++) {
System.out.println("ズン");
}
System.out.println("ドコ");
} while (zun < 4);
System.out.println("キ・ヨ・シ!");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment