Advertisement
Guest User

Untitled

a guest
Feb 14th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. numeros=[[
  2. 0,1
  3. 40,50
  4. 200,300
  5. 3000,3000
  6. ]]
  7.  
  8.  
  9. 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