Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to find the maximum of 10 numbers ?

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


Please Help Members By Posting Answers For Below Questions

List the special characteristics of constructor.

1126


What is the use of "new" operator?

1067


What is the purpose of the "delete" operator?

1009


What is else syntax in c++?

1119


What is else if syntax?

1105


What are the general quetions are in DEna bank manager IT/System interviews?

1952


What is a class template?

1025


What is abstraction with real time example?

1102


What is the difference between a pointer and a link in c ++?

1003


What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?

1049


Is swift a good first language?

1001


Explain terminate() function?

1008


What is the array and initializing arrays in c++?

982


What are the benefits of pointers?

985


What is null c++?

1073