answersLogoWhite

0


Best Answer

#define max2(a,b) (b>a?b:a)

#define max3(a,b,c) (max2(a,max(b,c)))

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: C program to find largest among three numbers?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

C program to find the largest among three numbers using ternary operator?

max = a > b ? a : b; max = max > c ? max : c;


An assembly language program that will take three decimal input and display minimum of them?

program that take three decimal number as input and find the largest among them in assembly language


Write a c plus plus program to find the largest among three numbers using ternary operators?

R = (A > B && A > C) ? A : (B > C) ? B : C; // parentheses not necessary - for clarity only


Write a 'c' program to fine a largest of three numbers?

largest of a, b, c :a > b ? a > c ? a : c : b > c ? b : c


Draw a flowchart that will determine and display the largest among the three numbers being inputted?

start input A & B if A>B print A is greatest if B>A print B is greatest stop james ola writes.....SOT.


The sum of three consecutive even numbers is 24 What is the largest of these numbers?

6 + 8 + 10 = 24Therefore the largest of the three numbers will be 10.


Write a C plus plus program and flow chart to find the largest of the 3 numbers?

To find the largest of three numbers, first find the largest of two numbers: int max (int x, int y) { return x<y?y:x; } Now you can use this one function to find the largest of three numbers: int max (int x, int y, int z) { return max (max (x, y), z); }


The sum of three consecutive numbers is 285 The largest of these three numbers is what?

94+95+96 96


Shell program for gcd of three given numbers?

write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? check bellow link http://bashscript.blogspot.com/2009/08/gcd-of-more-than-two-numbers.html


What is the largest three-digit even numbers?

998


what is the largest number 0.31 0.07 or 0.300?

0.31 is the largest of those three numbers.


Write an algorithm to find the largest number amongst three numbers and draw a flowchart?

Step1- Read a,b,c. Step2-if a>b continue step 5. Step3- b>c then print “b is the largest " and continue step 7. Step4- continue step 6 Step5-if a>c then print “a is the largest " then continue step7. Step6- print “z is largest". Step7- end.