15 lines
341 B
Python
15 lines
341 B
Python
def multiplica(numero1, numero2):
|
|
return numero1 * numero2
|
|
|
|
def fatorialrecursivo(numero):
|
|
if numero > 0:
|
|
return numero*fatorialrecursivo(numero-1)
|
|
else:
|
|
return 1
|
|
|
|
print ('Hello World')
|
|
print (multiplica(2, 5))
|
|
print (fatorialrecursivo(5))
|
|
for i in range(0, 10, 1):
|
|
print (fatorialrecursivo(i))
|