How can i write an algorithm that is determine if the three number is equal | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can i write an algorithm that is determine if the three number is equal

Algorithm

9th Aug 2019, 10:02 AM
Christine Balaoro
3 Answers
+ 5
if(a == b && a == c) //do something
9th Aug 2019, 10:05 AM
你知道規則,我也是
你知道規則,我也是 - avatar
+ 3
Can also use the ternary operator to implement it. https://code.sololearn.com/c5uiCRBjWO8L/?ref=app
9th Aug 2019, 10:16 AM
Sonic
Sonic - avatar
+ 1
Thanks CarrieForle
9th Aug 2019, 10:08 AM
Christine Balaoro