Computer Science, asked by shashi3699, 1 year ago

Write a program to store and calculate the sum of 5 numbers entered by the user using array. In c++

Answers

Answered by Anonymous
0

program to calculate sum of n numbers using an array. #include <stdio.h> int main() { int n, sum = 0, c, array[100]; scanf("%d", &n); for (c = 0; c < n; c++) { scanf("%d", &array[c]);

Similar questions