Bandicoot802

Receipt

Oct 20th, 2012
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | None | 0 0
  1. printer.setCursorPos(1,1)
  2. --printer.write("12345678901234567890123456789012345")
  3. printer.write("            BandiCorp              ")
  4. printer.setCursorPos(1,2)
  5. printer.write("           Items purchased         ")
  6. local x = 3
  7.  
  8.   for b = 1,10 do
  9.    Price[b] = ""
  10.    Items[b] = ""
  11.   end
  12. for a = 1,10 do
  13.  Total = Total + Price[i]
  14. end
  15.  
  16.  for i = 1,10 do
  17.   printer.setCursorPos(1,x)
  18.   x = x+1
  19.   printer.write(""..Items[i].."     Price : "..Price[i].."")
  20.  end
  21. printer.setcursorPos(1,x)
  22. printer.write("  Total : "..Total.."")
Advertisement
Add Comment
Please, Sign In to add comment