Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- numeros = [[
- 0,10
- 20,30
- 40,50
- 60,70
- 80,90
- ]]
- local p = {}
- for v in numeros:gmatch('%d+') do
- table.insert(p,v)
- end
- for i,v in next,p do
- if i%2~=0 then
- p[i] = {v}
- else
- table.insert(p[i-1],v)
- end
- end
- for i = 1,#p do
- if i%2~=0 then
- print('<J>'..table.concat(p[i],'<VP>+</VP><J>') .. '</J><VP> = <J>' .. p[i][1]/300 .. '</J>+<J>' .. p[1][2]/300 .. ' </J>=<R> ' .. (p[i][1]/300)+(p[1][2]/300))
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement