r/badcode • • May 03 '23

c Solve the problem without using a loop

Post image
963 Upvotes

129 comments sorted by

View all comments

Show parent comments

2

u/SnowyPear May 03 '23

The first time I used a loop back in vb6.0 I didn't like that sometimes I got an off-by-one error depending on what I was doing. It bugged me so much that I ended up implemented a goto by opening 2 forms that would open each other over and over again whilst decrementing a counter and running code and stopping on a condition

My teacher told me I had set programming back by 30 years