Wiiplay123

Square Equation

May 16th, 2014
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. -- Explains new way of how to find squares.
  2. addfornext = 5
  3. thesquare = 4
  4. while true do
  5. print("Square: "..thesquare)
  6. print("Square Root: "..thesquare^(1/2))
  7. print("Add "..addfornext.." for next square.")
  8. sleep(2)
  9. thesquare = thesquare + addfornext
  10. addfornext = addfornext + 2
  11. end
Advertisement
Add Comment
Please, Sign In to add comment