Find the largest among 3 numbers | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 3

Find the largest among 3 numbers

27th Oct 2017, 2:10 PM
Laan George
Laan George - avatar
3 Answers
+ 9
Start with the c++ course, you'll be able to do it yourself.
27th Oct 2017, 2:13 PM
Dev
Dev - avatar
+ 6
max = (a>b&&a>c)?a:(b>c)?b:c
27th Oct 2017, 4:45 PM
Kartikey Sahu
Kartikey Sahu - avatar
+ 2
Just use if/else if (elif) /else statements!
27th Oct 2017, 2:17 PM
Cool Codin
Cool Codin - avatar