Cynical Problem Solvers
Today's Fantasy, Tommorrow's Paranoia
Tuesday, February 22, 2011
The branch function with a defined variable
Today in class I set up a program that defines a variable as zero. Then it runs a loop that adds 1 to the variable as long as it is under 5 with a time delay of one second. After it reaches a value over than five, it will terminate itself.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment