I am finding greatest number among 3 given number or say by taking 3 numbers as input. but at one video in the solution the statement is if(a>=b && a>=c) to find a whether it is largest or not. But why is there a need to take equal sign also instead we can just compare by a>b && a>c. what if the numbers are equal? Also on google every solution has used just greater than sign for comparing expect one. Can someone help?
I was expecting a greater than sign to compare three numbers.
utsav_52 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.