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

int a[]=new int[10];
int max=a[0];

for(int i=0; i<10; i++)
{
if(a[i]>max)
{
max=a[i];
}
}
System.out.println("Maximum of 10 :" + max);

Is This Answer Correct ?    21 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how we implement exception handling in c++?

1109


What is the difference between a reference and a pointer?

1184


Describe private, protected and public?

1139


Can a new be used in place of old mallocq? If yes, why?

1144


Can we get the value of ios format flags?

1186


What is the type of this pointer in c++?

1113


Explain the difference between overloading and overriding?

1200


What is virtual table?

1175


What's the order in which the objects in an array are destructed?

1466


What is function overloading in C++?

1496


What are the various storage classes in C++?

1188


Can you please explain the difference between overloading and overriding?

1150


What is data types c++?

1070


Carry out conversion of one object of user-defined type to another?

1092


Can comments be longer than one line?

1129