How to find maximum of three numbers using conditional operator in one statement using C language? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to find maximum of three numbers using conditional operator in one statement using C language?

24th Jul 2019, 9:57 AM
Divyanshu Kumar
Divyanshu Kumar - avatar
3 Answers
24th Jul 2019, 11:52 AM
Sonic
Sonic - avatar
+ 4
Divyanshu Kumar It's very easy Maybe you can try it yourself 😊
24th Jul 2019, 10:11 AM
deeyae
deeyae - avatar
0
void main() { int a,b,c; a=12;b=5;c=32; if(a>b) { if(a>c) { putchar(a); } putchar(b) }else putchar(c) }
24th Jul 2019, 2:11 PM
HARSHA ASHMIN
HARSHA ASHMIN - avatar