Last active
March 18, 2016 15:14
-
-
Save siburu/76b64e90220c5ffb4aff to your computer and use it in GitHub Desktop.
No tricky zundoko program in Java
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
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