Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5
What rules exactly did you mean? simply put, `break` is used to exit a loop prematurely, before the loop condition evaluates to false, at which moment loop should normally stop. But if that's not what you ask for, then please add more details for what that "rules" you mentioned.
18th Aug 2019, 5:00 AM
Ipang