Write a program to store and calculate the sum of 5 numbers entered by the user using array. In c++
Answers
Answered by
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
Chemistry,
6 months ago
Science,
6 months ago
Social Sciences,
1 year ago
Biology,
1 year ago
India Languages,
1 year ago