Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function split(inputstr, sep)
- if sep == nil then
- sep = "%s"
- end
- local t={}
- for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
- table.insert(t, str)
- end
- return t
- end
- print("Please input X, Y, and Z:")
- local tempString = split(read(),' ')
- x,y,z = tonumber(tempString[1]),tonumber(tempString[2]),tonumber(tempString[3])
- print("X: ".. x)
- print("Y: ".. y)
- print("Z: ".. z)
- print("Total number of energy for this dig: ".. x*y*z .." You would need ".. (x*y*z)/80 .." coal for this dig. Please insert at least one coal in the fourth slot to begin.")
Add Comment
Please, Sign In to add comment