백준 10869번: 사칙연산 (C언어)

whyhy·2022년 1월 7일
0

백준 10869번: 사칙연산
https://www.acmicpc.net/problem/10869

1. 문제

2. 풀이

#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main(void)
{
    int a,b;
    
    scanf("%d %d",&a,&b);
    printf("%d\n",a+b);
    printf("%d\n",a-b);
    printf("%d\n",a*b);
    printf("%d\n",a/b);
    printf("%d",a%b);
}

3. Keypoint

앞의 백준 1000번, 1001번, 10998번과 유사한 문제.
산술 연산자와 \n (줄바꿈)만 잘 하면 된다.

profile
킵고잉🐢

0개의 댓글