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