Write a C++ program to find the sum of elements.
Answers
Answered by
0
Answer:
The program output is shown below.
- #include<iostream>
- int arr[10], n, i, sum = 0, pro = 1;
- cout << "Enter the size of the array : ";
- cin >> n;
- cout << "\nEnter the elements of the array : ";
- for (i = 0; i < n; i++)
- cin >> arr[i];
- for (i = 0; i < n; i++)
hope this helps you☺️
Similar questions