add
This commit is contained in:
13
Practica3/task3_rpo254.py
Normal file
13
Practica3/task3_rpo254.py
Normal file
@@ -0,0 +1,13 @@
|
||||
a = int(input("start "))
|
||||
b = int(input("end "))
|
||||
|
||||
for i in range(a,b+1):
|
||||
if i % 3 == 0:
|
||||
print("Fizz")
|
||||
if i % 5 == 0:
|
||||
print("Buzz")
|
||||
if i % 3 == 0 and i % 5 == 0:
|
||||
print("Fizz Buzz")
|
||||
if i % 3 != 0 and i % 5 != 0:
|
||||
print(i)
|
||||
|
||||
Reference in New Issue
Block a user