+ 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
4 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