Skip to content

Commit

Permalink
Add FizzBuzz in Python by @profgrammer
Browse files Browse the repository at this point in the history
* Add @profgrammer as a contributor

* python3 code for day 1

* python3 code for day 1

* python3 code for day 1
  • Loading branch information
profgrammer authored and MadhavBahl committed Dec 30, 2018
1 parent 1e72103 commit cd7dceb
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Day1/Python3/profgrammer_fizzbuzz.py
@@ -0,0 +1,17 @@
'''
*@author: profgrammer
*@date: 30-12-2018
'''

n = int(input())

for i in range(1, n+1):
if(i % 15 == 0):
print("Fizz Buzz")
elif(i % 5 == 0):
print("Buzz")
elif(i % 3 == 0):
print("Fizz")
else:
print(i)

20 changes: 20 additions & 0 deletions Day1/README.md
Expand Up @@ -199,6 +199,26 @@ for i in range(1, n+1):
```

### [profgrammer_fizzbuzz.py](./Python3/profgrammer_fizzbuzz.py)
```python
'''
@author: profgrammer
@date: 30-12-2018
'''

n = int(input())

for i in range(1, n+1):
if(i % 15 == 0):
print("Fizz Buzz")
elif(i % 5 == 0):
print("Buzz")
elif(i % 3 == 0):
print("Fizz")
else:
print(i)
```

## C++ Implementation

### [FizzBuzz.cpp](./C++/FizzBuzz.cpp)
Expand Down

0 comments on commit cd7dceb

Please sign in to comment.