User:Hajo/test2

From Minetest Wiki
< User:Hajo
Revision as of 05:29, 11 March 2017 by Hajo (talk | contribs) (→‎Prog1: string.format())
Jump to navigation Jump to search

Table-test2

todo

Lua - Online-IDEs

Example - Formatting a table:

Prog1

 n=1
 y=0
 for x = -n, n do
  for z = -n, n do
  --print(x,y,z)
    print( string.format("%2d %2d %2d", x,y,z) )
  end
 end
Output

...