a = tonumber(io.read("*n"))
b = tonumber(io.read("*n"))
c = tonumber(io.read("*n"))

print(string.format('MEDIA = %.1f', (a * 2.0 + b * 3.0 + c * 5.0) / 10.0))

Solve Average 2 in lua
Solve Average 2 in lua
