Computer Science, asked by plchandana8601, 5 days ago

C Program to print Sum of f numbers C​

Answers

Answered by birajdarchhaya182
0

Answer:

int main() { int n, sum = 0, c, array[100];

scanf("%d", &n);

for (c = 0; c

< n; c++) { scanf("%d", &array[c]); sum = sum + array[c]; }

printf("Sum = %d\n", sum);

return 0; }

Similar questions