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
Can you use the function fprintf() to display the output on the screen?
Write a recursive program to calculate factorial in c++.
What does it mean to declare a destructor as static?
What is the difference between structures and unions?
Define pointers?
Should you pass exceptions by value or by reference?
Why c++ is faster than java?
What is c++ w3school?
Can notepad ++ run c++?
What is the use of :: operator in c++?
What are the new features that iso/ansi c++ has added to original c++ specifications?
Is map thread safe c++?
How do you flush std cout?
What is #include cmath?
What is c++ try block?