I have a question about the value of for statement, break, and return.

Asked 2 years ago, Updated 2 years ago, 94 views

Here in the for statement
What is the meaning of Return?

And I want to know when you use break and return.

for return break

2022-09-22 18:26

1 Answers

In most languages:

So this is what happens when you translate the function you took the picture of.

For
 (one tire at a time) {
    If (that tire doesn't spin ==) {
        Stopping
        Return the tire number and finish
    }
}


2022-09-22 18:26

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.