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

Can you use the function fprintf() to display the output on the screen?

1188


Write a recursive program to calculate factorial in c++.

1023


What does it mean to declare a destructor as static?

1016


What is the difference between structures and unions?

1008


Define pointers?

1002


Should you pass exceptions by value or by reference?

1083


Why c++ is faster than java?

1006


What is c++ w3school?

1055


Can notepad ++ run c++?

1002


What is the use of :: operator in c++?

1057


What are the new features that iso/ansi c++ has added to original c++ specifications?

1064


Is map thread safe c++?

1021


How do you flush std cout?

1034


What is #include cmath?

1037


What is c++ try block?

991