[정올] Language Coder_반복제어문1_자가진단2_code537 (C)
두비니
·2020. 3. 8. 21:05
#include <stdio.h>
int main() {
int a, sum = 0;
scanf("%d", &a);
for (int i = 0; i <= a; i++) {
sum += i;
}
printf("%d", sum);
return 0;
}
'Coding_Algorithm > 정올 문제풀이' 카테고리의 다른 글
[정올] Language Coder_반복제어문1_자가진단3_code538 (C) (0) | 2020.03.13 |
---|---|
[정올] Language Coder_디버깅_형성평가4_code119 (C) (0) | 2020.03.08 |
[정올] Language Coder_연산자_자가진단7_code524 (C) (0) | 2020.03.08 |
[정올] Language Coder_출력_자가진단8_code508 (C) (0) | 2020.03.08 |
[정올] Language Coder_출력_자가진단7_code507 (C/C++/Python) (0) | 2020.03.07 |