[정올] 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;
}