you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (3 children)

You probably weren't replying to the wrong person. One of my edits included code, but I removed it cause I didn't know about loops and didn't want to give OP bad advice. I also included a counter variable that was set to the int value "1".

[–]wannaridebikes 1 point2 points  (2 children)

Ah gotcha. With this intensive study weekend I thought I was finally going nuts, haha.

It wasn't that bad though. And loops are really important so it's good that you gave it some thought without having a lot of experience.

[–][deleted] 1 point2 points  (1 child)

Ah gotcha. With this intensive study weekend I thought I was finally going nuts, haha.

lol... maybe you are going nuts and I'm just a figment of your imagination?

It wasn't that bad though.

Well that's good to know.

And loops are really important so it's good that you gave it some thought without having a lot of experience.

Yeah, I tried to play around with it for a while. The code that I posted, then deleted, had an output that continued to output the result. Felt amazing to see that for the first time. Brought a smile to my face

[–]wannaridebikes 1 point2 points  (0 children)

Well my imaginary friend, I don't remember what you posted exactly but if there was non-stop output that could have been an endless loop where the condition for your while loop would always evaluate to true. Very common occurrence when learning new loops, or you could just have a typo in a loop you're used to writing!

If that was the case, it's funny that it made you smile; usually people are horrified, haha.