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 / raj

int a[10],max=0;
cout<<"enter 10 numbers";

for(int i=0;i<10;i++)
{

cin>>a[i];

if(a[i]>max)
max=a[i];
}
cout<<"the maximum of entered 10 is"<<max;

Is This Answer Correct ?    9 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How static variables and local variablesare similar and dissimilar?

1097


What do you mean by volatile and mutable keywords used in c++?

1043


What are the 2 main types of data structures?

1170


What is an object in c++?

1352


Why should you learn c++?

1064


What are shallow and deep copy?

1171


Explain "const" reference arguments in function?

1113


What you know about structures in C++?

1147


How do we implement inheritance in c++?

1178


Can we distribute function templates and class templates in object libraries?

1133


What jobs can you get with a c++ certification?

1105


What are protected members in c++?

1181


How a new element can be added or pushed in a stack?

1061


Will a catch statement catch a derived exception if it is looking for the base class?

1063


What do you mean by funtion prototype?

1150