SHARE
TWEET

VarPt1.lua

a guest Jul 16th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local x = 5
  2. local y = 10
  3. print(x)
  4. print(x-3)  --THis shoul d be 2
  5. print(x*3)  -- This shoul d be 15
  6. print(y/2)  -- This shoul d 5
  7. print(x^3)  -- This shoul d be 125
  8.  
  9. local HW = "Hello World"
  10. print(hw)  --This should not work
  11. print(HW)  --This SHOULD work
  12.  
  13. local boolsample = true
  14. print (not boolsample)
  15.  
  16. local h = "Hello"
  17. local w = "World"
  18. print(h)
  19. print(w)
  20. print(h.." "..w)
  21.  
  22. local info
  23. term.write("Please enter a value: ")
  24. info = read()
  25. print("You Entered: "..info)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top