C Program to find maximum number between three number using Conditional Operator
C
Program to Find Maximum of Three Numbers using Conditional Operator
·
Write a C program to find maximum of three numbers using
conditional operator.
·
How to find largest of three numbers using ternary operator.
Required
Knowledge
·
C
printf and scanf functions
·
Conditional
Operator in C
Let A, B and C are three numbers.
·
We will first find the largest of A and B. Let
it be X.
·
Then we will compare X with third number C to
get the overall largest number.
C
program to find maximum of three numbers using conditional operator
|
Output
Enter Three Integers
9 1 4
Maximum Number is = 9
Comments
Post a Comment