전체 글 (187) 썸네일형 리스트형 [자바] 정올 521 :연산자 - 자가진단4 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(), b = sc.nextInt(); int mul = a++ * --b; System.out.println(a+ " " + b + " " + mul); } } [자바] 정올 520 : 연산자 - 자가진단3 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); System.out.println(a++); System.out.println(++a); } } [자바] 정올 531 : 선택제어문 - 자가진단4 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); double w = sc.nextDouble(); if (w > 88.45) System.out.println("Heavyweight"); else if (w > 72.57 && w 61.23 && w 50.80 && w [자바] 정올 520 : 연산자 - 자가진단3 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); System.out.println(a++); System.out.println(++a); } } [자바] 정올 519 : 연산자 - 자가진단2 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(), b = sc.nextInt(); System.out.print((a + 100) + " "); System.out.println(b % 10); } } [자바] 정올 518 : 연산자 - 자가진단1 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a= sc.nextInt(),b= sc.nextInt(),c= sc.nextInt(); int sum = a + b + c; System.out.println("sum : " + sum); System.out.println("avg : " + (sum/3)); } } [자바] 정올 110 : 입력 - 형성평가5 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.print("yard? "); double y = sc.nextDouble(); System.out.printf(y+"yard = %.1fcm", y*91.44); } } [자바] 정올 109 : 입력 - 형성평가4 import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); System.out.println("sum = " + (a + b + c)); } } 이전 1 ··· 12 13 14 15 16 17 18 ··· 24 다음