본문 바로가기

IT개발자/백준_Algorithm

백준 10869번 JAVA(자바) 문제 풀이

728x90
반응형
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		int a = scan.nextInt();
		int b = scan.nextInt();
            scan.close();
		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);
	}

}
728x90
반응형