Created
March 26, 2012 03:14
-
-
Save neiraza/2202607 to your computer and use it in GitHub Desktop.
世界のナベアツ(3の倍数と3が付く数字の時にアホになる)
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
public static void main(String[] args) { | |
// 世界のナベアツ | |
for (int i = 1; i <= 40; i++) { | |
if (i % 3 == 0 || Integer.toString(i).contains("3")) { | |
System.out.println("アホ"); | |
} else { | |
System.out.println(Integer.toString(i)); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment