Posts by Adrelayne Souza • 33 points
1 post
-
3
votes2
answers88
viewsQ: Can you create variables within a block and use them later?
do local a2 = 2*a local d = sqrt(b^2 - 4*a*c) x1 = (-b + d)/a2 x2 = (-b - d)/a2 end -- scope of `a2' and `d' ends here print(x1, x2) …