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

If dog is a friend of boy and boy is a friend of house, is dog a friend of house?

1015


How to declare a function pointer?

1006


What are the various operations performed on stack?

1103


What is the meaning of string in c++?

1070


What is #include cstdlib in c++?

1193


Why do we use classes in c++?

1074


what are Operators and explain with an example?

1168


Why is c++ still popular?

1056


What is ios :: in in c++?

1071


Can there be at least some solution to determine the number of arguments passed to a variable argument list function?

1017


Explain the volatile and mutable keywords.

1075


Explain the static member function.

1194


What is string in c++ programming?

1200


What are associate containers?

1049


what is pre-processor in C++?

1175