sum of list in C

[ad_1]

sum of list in C
#include 

void main() {
	int List[5] = { 1, 2, 3, 4, 5 };
	int sum = 0;
	for (int i = 0; i < 5; i++) {
		sum += List[i];
	}
	printf(
}

[ad_2]

Please follow and like us:
Content Protection by DMCA.com