Too many variables in an assignment may cause a C stack overflow. (7)
[lua.git] / test / cf.lua
blob8cda54b9810ea1f0cc2bb75d103c8262d4a94a4c
1 -- temperature conversion table (celsius to farenheit)
3 for c0=-20,50-1,10 do
4 io.write("C ")
5 for c=c0,c0+10-1 do
6 io.write(string.format("%3.0f ",c))
7 end
8 io.write("\n")
10 io.write("F ")
11 for c=c0,c0+10-1 do
12 f=(9/5)*c+32
13 io.write(string.format("%3.0f ",f))
14 end
15 io.write("\n\n")
16 end