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

What is static in c++?

1020


What do you mean by ‘void’ return type?

1009


What is the difference between a declaration and a definition?

1058


What is nested class in c++?

909


How can you link a c program with a c function?

1027


What are function prototypes?

1197


Define a pointer to a data member of the type pointer to pointer?

946


Is c the same as c++?

963


write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;

1965


What do you mean by “this” pointer?

1042


which of the following is not an secondary constant a) array b) real c) union

1772


How does com provide language transparency?

973


What is #include sstream?

1023


How c functions prevents rework and therefore saves the programers time as wel as length of the code ?

1048


What does new return if there is insufficient memory to make your new object?

990