Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#4 erro

open
None
9
2008-03-01
2008-03-01
miguelcz
No

funcao inteiro factorial ( inteiro x )
inicio
se x = 1 entao
retornar 1
senao
retornar (x * factorial ( x - 1 ))
fimse
fimfuncao
inicio
variavel inteiro n , z
escrever "insira um número: "
ler n
z <- factorial ( n )
escrever "factorial(" , n , ") = ", z
fim

Discussion

  • miguelcz
    miguelcz
    2008-03-01

    • priority: 5 --> 9
    • assigned_to: nobody --> ncerqueira