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 is meant by entry controlled loop?
How do you find out if a linked-list has an end? (I.e. The list is not a cycle)
Are c and c++ different?
What is conditions when using boolean operators?
What is the difference between map and hashmap in c++?
Briefly describe a B+ tree. What is bulk loading in it?
How do you print a string on the printer?
how to connect with oracle 9i with server in socket program in c/c++
int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}
What do you mean by stack unwinding in c++?
Distinguish between new and malloc and delete and free().
Is c++ still in demand?
How to tokenize a string in c++?
How do you invoke a base member function from a derived class in which you’ve overridden that function?
What is lazy initialization in c++?