+ 1
I don't understand the grrater than or equal to and smaller than or equals to
>= <=
2 RĂ©ponses
+ 1
A<B means loop
Continues till A Reaches to B-1 and then do it for one more time and terminates the loop
A<=B
Continues till A reaches to B
And then do it for one more time
And terminates the loop
In A<B
Loop Breaks When A == B
in A<=B
Loop Breaks When A == B+1
Example in cpp
A=0 , B=3
While(A<B)
A++;
Goes like this:
A=0 -> checks:A<B:True -> A=1 ->
checks:A<B:True -> A=2 ->
checks:A<B:True -> A=3 ->
checks:A<B:False -> terminates
I Hope this Works
Ya Ali
_____________________
for more info just ask
0
Olatunji Emmanuel Your question doesn't make senseđ. I mean, there's nothing to be confusedđ” about. Everything is just in the meaning of the operator.