Please read the guide .
Please answer the question in detail
#include<iostream>
using namespace std;
int main()
{
int arr[10],i,sum=0;
cout<<"Enter any elements in Array: ";
for(i=0;i<10;i++)
cin>>arr[i];
}
cout<<"Sum of all Elements are: ";
sum=sum+arr[i];
cout<<sum;
Output::
Doubtly is an online community for engineering students, offering:
Get the pro version for free by logging in!
5.7k questions
5.1k answers
108 comments
563 users