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 out the maximum number out of the three inputs.

Answer Posted / dapumptu

If the inputs are a, b, and c,

max = a;
if (b > max) max = b;
if (c > max) max = c;

now max will contain the largest of the three.

Is This Answer Correct ?    17 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i don't know about working of nested for loop can any one help me

2298


Teta-Omeg-Big-Oh Show that f(n) = n2 + 3n3 is ;(n3).

3637


write a program that reads a series of strings and prints only those strings begging with letter "b"

3130


output for printf("printf");

2551


how to diplay a external image of output on winxp by using c & c++,

3466


Write a simple encryption program using string function which apply the substitution method.

6135


create a stucture student containing field for roll no,class,year and marks.create 10 student annd store them in a file

2722


A suduco given & u hv 2 check if it is incomplete(blanks left),or correct or incorrect

2891


Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

3763


write a function that reverse the elements of an array in place.The function must accept only one pointer value and return void.

4596


write a program to perform generic sort in arrays?

3081


Code for Small C++ Class to Transform Any Static Control into a Hyperlink Control?

3071


develop a program to calculate and print body mass index for 200 employees

2667


write a program to calculate the amount of investment after a period n years if the principal investors was p and interest is calculated using compound interest,formular=a=p(1+r)^n

2864


write a program that prompt the user to enter his height and weight,then calculate the body mass index and show the algorithm used

4867