class Chapter0 { public static void main(String[] args) { System.out.printf("abc\n12\tcde\n34\t56\tfgh\n"); /* int r = 2; System.out.printf("半径 %d の円の周長は %f\n", r, 2*r*3.14); System.out.printf("[\%3d]", 1) System.out.printf("[\%03d]", 1) System.out.printf("[\%.3f]", Math.PI) System.out.printf("[\%x]", 127) System.out.printf("[\%X]", 127) System.out.printf("%d / %d = %d\n", 5, 3, 5/3); System.out.printf("%d % %d = %d\n", 8, 5, 8%5); System.out.printf("%d / %d = %f\n", 5, 3, (double)5/3); int score = 65; if (score >= 60) { System.out.printf("合格"); } if (score >= 60) { System.out.printf("合格"); } else { System.out.printf("不合格"); } int no = -1; if (no == 0) { System.out.println("その数は 0です。"); } else if (no > 0) { System.out.println("その数は正です。"); } else { System.out.println("その数は負です。"); } int i; for (i=0; i<5; i++) { System.out.printf("%d * %d = %d\n", i, i, i*i); } */ } }