Add the Lua distibution from http://www.lua.org/ftp/lua-5.1.4.tar.gz
[Samba/gebeck_regimport.git] / source3 / lua-5.1.4 / test / cf.lua
blob2b2880d350e2ce98a701420bb496d559469d8e65
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