I am not a coder. How does that equal to 1? That for to me reads x in 3 to 5 in steps of 3 so that will only take 3 and that's it. That means it will be on the else branch of the if and since result is 0 initially then it becomes 3. For exits and that is that. What am I missing?
- Posts
- 2
- Comments
- 169
- Joined
- 1 yr. ago
- Posts
- 2
- Comments
- 169
- Joined
- 1 yr. ago
- JumpDeleted
Permanently Deleted
- JumpDeleted
Permanently Deleted
- JumpDeleted
Permanently Deleted
- JumpDeleted
Permanently Deleted
- JumpDeleted
Permanently Deleted
- JumpDeleted
Permanently Deleted
Ah that makes sense. I have never seen a for loop like that. I only used for in bash, python and fortran and they didn't look like that.
I wonder if for these questions you can ask for clarifications or that's an instant fail. Are you supposed to instantly recognize what they mean? Like with this example what would you have done?