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 do I exit turbo c++?

1075


What is the v-ptr?

1167


How much do coding jobs pay?

1013


Where can I run c++ program?

1068


Why is c++ is better than c?

981


What are the advantages of using pointers in a program?

1140


Explain bubble sorting.

1095


What language is a dll written in?

1022


How the programmer of a class should decide whether to declare member function or a friend function?

1118


What happens when the extern "c" char func (char*,waste) executes?

1089


What is an operator function? Describe the function of an operator function?

1152


Explain one-definition rule (odr).

1119


What is a constructor and how is it called?

1050


Define anonymous class.

1076


What is the best c++ book?

1268