A friend of mine used to teach coding decades ago and one story I’ll never forget is about the student who had an assignment that asked for a “for” loop to be used, but they didn’t quite know how to use it so they just wrote a broken loop there and then hid a “while” loop at the far end of the line.
Code compiled, had a “for” loop and had the right output.
A friend of mine used to teach coding decades ago and one story I’ll never forget is about the student who had an assignment that asked for a “for” loop to be used, but they didn’t quite know how to use it so they just wrote a broken loop there and then hid a “while” loop at the far end of the line.
Code compiled, had a “for” loop and had the right output.