[백준] 10869번 : 사칙연산 - Java(자바)

강재원·2022년 9월 2일
0

[코딩테스트] Java

목록 보기
15/200



https://www.acmicpc.net/problem/10869

import java.util.*;
public class Main {
    public static void main(String args[]) {
        Scanner s=new Scanner(System.in);
        int a=s.nextInt();
        int b=s.nextInt();
        System.out.format("%d\n",a+b);
        System.out.format("%d\n",a-b);
        System.out.format("%d\n",a*b);
        System.out.format("%d\n",a/b);
        System.out.format("%d\n",a%b);
    }
}
profile
개념정리 & 문법 정리 & 알고리즘 공부

0개의 댓글