본문 바로가기
PROGRAMMING CODE/C

[BAEKJOON] No.10869 C언어

by daye_ 2021. 10. 18.

사칙연산

#include <stdio.h>

int main(int argc, const char * argv[]) {
    int a=0,b=0;
    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\n",a%b);
    return 0;
}

'PROGRAMMING CODE > C' 카테고리의 다른 글

[BAEKJOON] No.10950 C언어  (0) 2021.10.18
[BAEKJOON] No.10871 C언어  (0) 2021.10.18
[BAEKJOON] No.10430 C언어  (0) 2021.10.18
[BAEKJOON] No.10172 C언어  (0) 2021.10.18
[BAEKJOON] No.2164 C언어  (0) 2021.10.18