WAD to declared
an array of are 10 and to store only the perfect number and display
maximum value.
Answers
Answered by
0
Answer:
#include<iostream>
using namespace std;
{
int a[10],sum=0,i;
cout<<"enter no in array";
for(i=0,i<10,i++)
{
cin>>a[i];
sum=sum+a[i];
}
cout<<"the max sum of 10 variables is"<<sum;
return 0;
}
Explanation:
hope you find this helpful
Similar questions
Chemistry,
2 months ago
India Languages,
5 months ago
Social Sciences,
5 months ago
Social Sciences,
11 months ago
Math,
11 months ago
India Languages,
11 months ago