Coding Test/백준 (78) 썸네일형 리스트형 [백준/자바] 10869 - 사칙연산 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(); System.out.println(A+B); System.out.println(A-B); System.out.println(A*B); System.out.println(A/B); System.out.println(A%B); sc.close(); } } [백준/자바] 1008 - A/B import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); double A = sc.nextDouble(); double B = sc.nextDouble(); System.out.println(A/B); sc.close(); } } [백준/자바] 10998 - A×B 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(); System.out.println(a*b); sc.close(); } } [백준/자바] 1001 - A-B 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(); System.out.println(A-B); sc.close(); } } [백준/자바] 1000 - A+B 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(); System.out.println(A+B); sc.close(); } } [백준/자바] 2557 - Hello World public class Main { public static void main(String[] args){ System.out.println("Hello World!"); } } 이전 1 ··· 7 8 9 10 다음