Advertisement
Mesaif

CH4_Ex6

May 11th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. %Prints a table of squares up to a inputted number
  2. %VARIABLES
  3. var howMany : int
  4.  
  5. %Main Loop
  6. loop
  7. put "Highest number to square: " ..
  8. get howMany
  9.  
  10. %Print table
  11. put "Number Square"
  12. for i : 1 .. howMany
  13. put i, " ", i * i
  14. delay (20)
  15. end for
  16.  
  17. %more housekeeping
  18. delay (500)
  19. put " "
  20. put "-------------------------"
  21. put " "
  22.  
  23. end loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement