From 72e1b90caa89066e4cec11dffdca214e18b8cde2 Mon Sep 17 00:00:00 2001 From: Dileepvarma18 <44198049+Dileepvarma18@users.noreply.github.com> Date: Sun, 28 Oct 2018 22:47:07 +0530 Subject: [PATCH] Create modified fizzbuzz --- modified fizzbuzz | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 modified fizzbuzz diff --git a/modified fizzbuzz b/modified fizzbuzz new file mode 100644 index 00000000..32022d2e --- /dev/null +++ b/modified fizzbuzz @@ -0,0 +1,10 @@ +a = int(input("num: ")) +for i in range(a): + if(i%3==0): + print("fizz") + elif(i%5==0): + print("buzz") + elif((i%3==0) and (i%5==0)): + print("FizzBuzz") + else: + print(i)