๐Ÿ•ธ Algorithm/๐Ÿ•ธ ๋ฐฑ์ค€ BaekJoon

[๋ฐฑ์ค€][java][10869][์‚ฌ์น™์—ฐ์‚ฐ]

๋‰ด์ด NUEY 2023. 8. 27. 19:28
๋ฐ˜์‘ํ˜•

import java.util.Scanner;

public class Main {
	
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		
		int firstInput = scanner.nextInt();
		int secondInput = scanner.nextInt();
        
        scanner.close();
		
		System.out.printf("%d\n", firstInput + secondInput);
		System.out.printf("%d\n", firstInput - secondInput);
		System.out.printf("%d\n", firstInput * secondInput);
		System.out.printf("%d\n", firstInput / secondInput);
		System.out.printf("%d\n", firstInput % secondInput);
	}
	
}

 

๋ฐ˜์‘ํ˜•