Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ageofdeath = 84
- local bagofchipsday = 2
- local averagehumanweight = 140
- local sum = ageofdeath*365
- local pounds = averagehumanweight
- for i=1,sum do
- for i=1,bagofchipsday do
- pounds = pounds + .01
- end
- end
- function round(number)
- kek = nil
- local strnum = tostring(number)
- for i=1,#strnum do
- if string.sub(strnum,i,i) == "." then
- kek = tonumber(string.sub(strnum,i+1,i+1))
- kek2 = tonumber(string.sub(strnum,1,i-1))
- end
- end
- if kek ~= nil then
- if kek >= 5 then
- kek2 = kek2 + 1
- else
- kek2 = kek2
- end
- end
- return kek2
- end
- print("Client weight at death is : "..round(pounds).." pounds.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement