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

what is scupper?

2336


Is string an object in c++?

1114


What are special characters c++?

988


When we use Abstract Class and when we use Interface?where we will implement in real time?

2154


How are Structure passing and returning implemented by the compiler?

1077


Where the memory to the static variables is allocated?

1016


What is the this pointer?

1084


What is data abstraction? How is it different from data encapsulation?

956


What is vector string in c++?

1054


What is array in c++ example?

1075


What is static function? Explain with an example

1017


What are the four partitions in which c++ compiler divides the ram?

1185


Write a Program for read a line from file from location N1 to N2 using command line arguments. Eg:exe 10 20 a.c

1241


What is the difference between C and CPP?

1122


You run a shell on unix system. How would you tell which shell are you running?

1134