Answer Posted / namitha
#include<iostream.h>
main()
{
int a[10],n;
cout<<"enter ten numbers:\n";
for(int i=0;i<10;i++)
{
cin>>a[i];
}
int max=a[0];
for(i=0;i<10;i++)
{
if(a[i]>max)
max=a[i];
}
cout<<"the maximum number is:"<<max<<endl;
}
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
Differentiate between C and C++.
Can you pass a vector to a function?
How can I learn c++ easily?
What is constructor in C++?
Which coding certification is best?
Explain unexpected() function?
What is the role of C++ shorthand's?
What is public, protected, private in c++?
What is endl?
What is purpose of abstract class?
Is c++ low level?
What is atoi in c++?
How much is c++ certification?
Why do we use iterators?
Why is c++ not purely object oriented?