[정올] Language Coder_배열1_형성평가2_code151 (C)
두비니
·2020. 4. 14. 13:39
#include <stdio.h>
int main() {
int arr[5], sum=0;
for (int i = 0; i < 5; i++) {
scanf("%d ", &arr[i]);
}
sum = arr[0] + arr[2] + arr[4];
printf("%d", sum);
return 0;
}
'Coding_Algorithm > 정올 문제풀이' 카테고리의 다른 글
[정올] Language Coder_배열1_형성평가4_code153 (C) (0) | 2020.11.27 |
---|---|
[정올] Language Coder_배열1_형성평가3_code152 (C) (0) | 2020.04.15 |
[정올] Language Coder_배열1_형성평가1_code150 (C) (0) | 2020.04.13 |
[정올] Language Coder_배열1_자가진단8_code562 (C) (0) | 2020.04.12 |
[정올] Language Coder_반복제어문3_형성평가A_code149 (C) (0) | 2020.04.11 |