Created
October 31, 2021 04:53
-
-
Save bharathmuddada/6822e3abd1ccd54471f18e72c5f9dcf7 to your computer and use it in GitHub Desktop.
FizzBuzz in python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
number = int(input("enter your number ")) | |
if (number%3 ==0 and number%5 ==0): | |
print("FizzBuzz") | |
elif(number%3 ==0): | |
print("Buzz") | |
elif(number%5 ==0): | |
print("Fizz") | |
else: | |
print(number) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment