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 Member Functions in Classes?
How come you find out if a linked-list is a cycle or not?
Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;
What is array in c++ example?
Do inline functions improve performance?
How does a C++ structure differ from a C++ class?
Differentiate between the manipulator and setf( ) function?
What are all predefined data types in c++?
what are the events occur in intr activated on interrupt vector table
What is iterator c++?
What does it mean to declare a member variable as static?
Define pure virtual function?
Which is most difficult programming language?
In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?
What do you mean by global variables?