Answer Posted / prits
#include <iostream>
using namespace std;
void main()
{
int max = 0;
int arr[10];
cout<<"Enter 10 numbers"<<endl;
for(int i = 0; i<=10; i++)
{
cin>>arr[i];
}
for(int i = 0; i<=10; i++)
{
if(arr[i]>max)
max =arr[i];
}
cout<<"Maximun of the 10 numbers is "<<max<<endl;
}
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
What things would you remember while making an interface?
What is the main purpose of overloading operators?
What is helper in c++?
List the merits and demerits of declaring a nested class in C++?
What do you mean by translation unit in c++?
What does h mean in maths?
What problems might the following macro bring to the application?
Mention the storage classes in c++.
What is ios in c++?
What is a singleton c++?
What is the difference between the compiler and the preprocessor?
List the advantages of inheritance.
Give example of a pure virtual function in c++?
Is sorted c++?
Define anonymous class.