본문 바로가기

728x90
반응형

프로그래밍/자바

(113)
[자바] 정올 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"); } }
[자바] 정올 101 : 출력 - 형성평가1 public class Main { public static void main(String[] args) { System.out.println("My name is Hong"); } }
[자바] 정올 508 : 출력 - 자가진단8 public class Main { public static void main(String[] args) { System.out.printf("%10s%10s%10s\n","item", "count","price"); System.out.printf("%10s%10s%10s\n","pen","20","100"); System.out.printf("%10s%10s%10s\n","note","5","95"); System.out.printf("%10s%10s%10s","eraser","110","97"); } }
[자바] 정올 507 : 출력 - 자가진단7 public class Main { public static void main(String[] args) { System.out.println("5 Dan\n" + "5 * 2 = 10"); } }
[자바] 정올 506 : 출력 - 자가진단6 public class Main { public static void main(String[] args) { System.out.println("My height\n" + "170\n" + "My weight\n" + "68.600000"); } }

728x90
반응형