Skip to content

Commit ed8c7fa

Browse files
committed
Reto #0 - Python
1 parent eb1a5ee commit ed8c7fa

File tree

1 file changed

+16
-0
lines changed
  • Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [Fácil]/python

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#Reto #0: EL FAMOSO "FIZZ BUZZ"
2+
#Dificultad: Fácil
3+
4+
counter = 1
5+
6+
print("****Fizz Buzz****")
7+
while counter <= 100:
8+
if((counter % 3 == 0) and (counter % 5 == 0)):
9+
print("fizzbuzz")
10+
elif(counter % 5 == 0):
11+
print("buzz")
12+
elif(counter % 3 == 0):
13+
print("fizz")
14+
else:
15+
print(counter)
16+
counter+= 1

0 commit comments

Comments
 (0)