본문 바로가기

728x90
반응형

전체 글

(187)
[자바] 정올 512 : 입력 - 자가진단4 public class Main { public static void main(String[] args) { int w = 49; double r = 0.268300; System.out.printf(w + " * %.6f = %.6f", r, w*r); } }
[자바] 정올 511 : 입력 - 자가진단3 public class Main { public static void main(String[] args) { int a = 55, b = 10, c = 2008, d = 1999; System.out.println(a + " - " + b + " = " + (a-b)); System.out.println(c + " - " + d + " = " + (c - d)); } }
[자바] 정올 510 : 입력 - 진단평가2 public class Main { public static void main(String[] args) { int a = -1, b = 100; System.out.println(a); System.out.println(b); } }
[자바] 정올 509 : 입력 - 자가진단1 public class Main { public static void main(String[] args) { int a = -100; System.out.println(a); } }
[자바] 정올 105 : 출력 - 형성평가5 public class Main { public static void main(String[] args) { System.out.printf("%15s%15s%15s\n", "Seoul", "10,312,545", "+91,375"); System.out.printf("%15s%15s%15s\n", "Pusan", "3,567,910", "+5,868"); System.out.printf("%15s%15s%15s\n", "Incheon", "2,758,296", "+64,888"); System.out.printf("%15s%15s%15s\n", "Daegu", "2,511,676", "+17,230"); System.out.printf("%15s%15s%15s", "Gwangju", "1,454,636..
[자바] 정올 104 : 출력 - 형성평가4 public class Main { public static void main(String[] args) { System.out.println("kor 90\n" + "mat 80\n" + "eng 100\n" + "sum 270"); } }
[자바] 정올 103 : 출력 - 형성평가3 public class Main { public static void main(String[] args) { System.out.println("TTTTTTTTTT\n" + "TTTTTTTTTT\n" + " TT\n" + " TT\n" + " TT"); } }
[자바] 정올 102 : 출력 - 형성평가2 public class Main { public static void main(String[] args) { System.out.println("My hometown\n" + "Flowering mountain"); } }

728x90
반응형