#include <iostream>
using namespace std;
int main()
{
int arr[10],sum=0,i;
cout<<"Enter 10 numbers"<<endl;
for(i=0;i<10;i++)
{
cin>>arr[i];
sum = sum+arr[i];
}
cout<<"Sum = "<<sum;
return 0;
}
using namespace std;
int main()
{
int arr[10],sum=0,i;
cout<<"Enter 10 numbers"<<endl;
for(i=0;i<10;i++)
{
cin>>arr[i];
sum = sum+arr[i];
}
cout<<"Sum = "<<sum;
return 0;
}
No comments:
Post a Comment
Thanks For Visiting Here...!! I will Reply you as soon as possible.