프로그래머스코딩테스트연습풀이/C언어
[프로그래머스/C언어] 덧셈식 출력하기
코코쵸마
2023. 7. 22. 17:53
문제
두 정수 a, b가 주어질 때 다음과 같은 형태의 계산식을 출력하는 코드를 작성해보세요.
a + b = c
솔루션
#include <stdio.h>
int main(void) {
int a;
int b;
scanf("%d %d", &a, &b);
printf("%d + %d = %d", a, b, a + b);
return 0;
}
https://school.programmers.co.kr/learn/courses/30/lessons/181947