Answer Posted / raj
int a[10],max=0;
cout<<"enter 10 numbers";
for(int i=0;i<10;i++)
{
cin>>a[i];
if(a[i]>max)
max=a[i];
}
cout<<"the maximum of entered 10 is"<<max;
| Is This Answer Correct ? | 9 Yes | 6 No |
Post New Answer View All Answers
What is static in c++?
What do you mean by ‘void’ return type?
What is the difference between a declaration and a definition?
What is nested class in c++?
How can you link a c program with a c function?
What are function prototypes?
Define a pointer to a data member of the type pointer to pointer?
Is c the same as c++?
write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;
What do you mean by “this” pointer?
which of the following is not an secondary constant a) array b) real c) union
How does com provide language transparency?
What is #include sstream?
How c functions prevents rework and therefore saves the programers time as wel as length of the code ?
What does new return if there is insufficient memory to make your new object?