Created
January 11, 2014 20:34
-
-
Save anonymous/8376364 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VARIABLES | |
a | |
b | |
counter = 0 | |
result = 0 | |
innercounter = 0 | |
END | |
counter = b + 0 | |
WHILE counter != 0 DO | |
innercounter = a + 0 | |
WHILE innercounter != 0 DO | |
result = result + 1 | |
innercounter = innercounter - 1 | |
END | |
counter = counter - 1 | |
END | |
PS X:\cljwhile> lein run .\multiply.while | |
Initial value for a: 32 | |
Initial value for b: 4 | |
Result value for a: 32 | |
Result value for b: 4 | |
Result value for innercounter: 0 | |
Result value for counter: 0 | |
Result value for result: 128 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment