프로그래밍 (122) 썸네일형 리스트형 [자바] 정올 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)); } } [자바] 정올 108 : 입력 - 형성평가3 public class Main { public static void main(String[] args) { int a = 50; double b = 100.12; System.out.printf(b +" * "+a+" = "+ "%.0f", b*a); } } [자바] 정올 107 : 입력 - 형성평가2 public class Main { public static void main(String[] args) { double a = 80.5, b = 22.34; System.out.printf("%10.2f%10.2f%10.2f", a, b, a+b); } } [자바] 정올 106 : 입력 - 형성평가1 public class Main { public static void main(String[] args) { int a= 10, b= 20, c = 30; System.out.println(a + " + " + b + " = " + c); } } 이전 1 ··· 8 9 10 11 12 13 14 ··· 16 다음