Skip to content

DDmitroIDD/conflict

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

def shouter(a):
    L = []

    for c in range(1, a + 1):

            if (c % fizz == 0) and (c % buzz == 0):
                L.append('FB')#print ("FB")
            elif c % fizz == 0:
                L.append('F')#print("F")#
            elif c % buzz == 0:
                L.append('B')#print ("B")#
            else:
                L.append(c)#print(c)#
    G = (': ' .join(map(str, L)))
    print(G)
#print(shouter(a))
fizz = int(input("Enter first number"))
buzz = int(input("Enter second number"))
a = int(input("Enter the third one"))
shouter(a)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published