I don't understand the grrater than or equal to and smaller than or equals to | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I don't understand the grrater than or equal to and smaller than or equals to

>= <=

4th Dec 2021, 5:47 PM
Olatunji Emmanuel
Olatunji Emmanuel - avatar
2 Answers
+ 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
6th Dec 2021, 11:35 AM
‎میم شین‎
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.
4th Dec 2021, 5:54 PM
(☞ ಠ_ಠ)☞.ρrΑτΗαΜ.
(☞ ಠ_ಠ)☞.ρrΑτΗαΜ. - avatar