Sum of numbers
Coddy의 코딩 문제 코스 레슨 — 32개 중 10번째.
입력받은 N개 숫자의 합을 계산하는 프로그램을 작성하세요.
챌린지
쉬움자연수 N을 입력받는 프로그램을 작성하세요. 다음 N개의 줄에는 각 줄마다 하나의 숫자가 주어집니다. 입력된 모든 숫자의 합계를 출력하세요.
입력
3
10
20
30
출력
60
입력
2
100
50
출력
150
직접 해보기
#include <stdio.h>
int main() {
// 여기에 코드를 작성하세요
return 0;
}
코딩 문제의 모든 레슨
1Course Introduction
Introduction2Easy Difficulty
SumEven or OddSquare & CubeMonthsMiddle digitTriangleMathematicsSum to NSum of numbersSortingCircle