0

How can we say not greater than in c++ ?

Not greater than

21st Jul 2019, 6:23 AM
The unknown 321
The unknown 321 - avatar
4 Respostas
+ 11
The unknown 321 I'm Sorry !! I couldn't get you at that time 😓
21st Jul 2019, 9:37 AM
Nova
Nova - avatar
+ 10
First of all, there isn't any valid expression for not greater than But if you want to use 'Not Greater Than', then you can use 'Less Than Or Equal To' which is inverse to the former. So you can use '<=' for 'Not Greater Than' Hope This Helps !!!
21st Jul 2019, 7:35 AM
Nova
Nova - avatar
+ 9
You could also do: !(a > b) but that's 2 operations and wastes computer resources.
21st Jul 2019, 8:08 AM
Valen.H. ~
Valen.H. ~ - avatar
+ 2
Keval I didn't say there is i just said how to do it is there's a way.
21st Jul 2019, 8:57 AM
The unknown 321
The unknown 321 - avatar