Fatorial

- Esse programa calcula o fatorial de um número.

#fatorial.lua 
f = 1
print"digite um numero"
i = io.read("*n")
    while i > 0 do
         f=f*i
         i=i-1
         print(f)
    end

voltar

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.