Skip to content

Instantly share code, notes, and snippets.

@neiraza
Created March 26, 2012 03:14
Show Gist options
  • Save neiraza/2202607 to your computer and use it in GitHub Desktop.
Save neiraza/2202607 to your computer and use it in GitHub Desktop.
世界のナベアツ(3の倍数と3が付く数字の時にアホになる)
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