Computer Science, asked by anweshakar980, 2 months ago

WAD to declared
an array of are 10 and to store only the perfect number and display
maximum value.​

Answers

Answered by jatin001177
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