Skip to content

Commit

Permalink
Reto #0 python
Browse files Browse the repository at this point in the history
  • Loading branch information
MiguelMillones committed Jun 10, 2023
1 parent 6315004 commit 564bfbe
Showing 1 changed file with 17 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,21 @@
# * - Múltiplos de 3 y de 5 a la vez por la palabra "fizzbuzz".
# */

numero_inicial=0
numero_final=100
#Rango:
NUMERO_INICIAL=1
NUMERO_FINAL=100

lista=range(numero_inicial,numero_final,1)
print(lista)
for i in range(NUMERO_INICIAL, NUMERO_FINAL+1,1):
MUL3=i%3
MUL5=i%5

if MUL3==0:
if MUL5==0:
print("fizzbuzz")
else:
print("fizz")
else:
if MUL5==0:
print("buzz")
else:
print(i)

0 comments on commit 564bfbe

Please sign in to comment.