Blog Archive

Sunday, 23 November 2014

Week #11 Halting before my eyes.

This class is coming to an end and it was a quick ride, to be honest. I guess it feels quick because of all the crazy assignments and mid-terms.

We learned the halt of a program, which I think is the very basic of the computer science, but still very important. While I had experiences with the infinite loops and how to halt the loops, it is always hard for me and probably for a lot of people. 


n = 20

While n < 30:
     print("This doesn't halt")
     n = n - 1 

No comments:

Post a Comment