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
List the special characteristics of constructor.
What is the use of "new" operator?
What is the purpose of the "delete" operator?
What is else syntax in c++?
What is else if syntax?
What are the general quetions are in DEna bank manager IT/System interviews?
What is a class template?
What is abstraction with real time example?
What is the difference between a pointer and a link in c ++?
What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?
Is swift a good first language?
Explain terminate() function?
What is the array and initializing arrays in c++?
What are the benefits of pointers?
What is null c++?