Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- monthes = {
- 27,
- 16,
- 1,
- 0-4,
- 0-8,
- 0-8,
- 0-13,
- 0-16,
- 0-11,
- 0-2,
- 15,
- 26,
- }
- first = monthes[1]
- first2 = monthes[2]
- repeat
- answer = (first+first2)/2
- print("Answer is "..answer.."!")
- file = io.open("Awnswers","w")
- file:write("Answer 1 of "..first.." and "..first2.." is "..answer.."!")
- for i=1,12 do
- if first == monthes[i] then
- first = monthes[i+1]
- first = monthes[i+2]
- elseif first == monthes[12] then
- print("All answers completed!")
- file:write("All answers completed!")
- file:close()
- done = true
- error()
- end
- end
- until done == true
Advertisement
Add Comment
Please, Sign In to add comment