-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2ae3199
commit c17cfc6
Showing
3 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
def fizzbuzz(n): | ||
for i in range(n): | ||
if i % 15 == 0: | ||
print("FIZZBUZZZ") | ||
elif i % 5 == 0: | ||
print("BUZZZZZ") | ||
elif i % 3 == 0: | ||
print("FIZZZZ") | ||
else: | ||
print(i) | ||
|
||
def circumference(r): | ||
result = float(r)*2 * 3.14 | ||
return result | ||
|
||
|
||
ask = input("do u want fizzbuzz or area? ") | ||
if ask == "fizzbuzz": | ||
a = input("what is the number") | ||
fizzbuzz(int(a)) | ||
elif ask == "area": | ||
re = input("what is the readius") | ||
v = circumference(re) | ||
print(v) | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -910,3 +910,5 @@ | |
|
||
|
||
[day-367 functions](#day-367-functions) | ||
|
||
[day-368 functions](#day-368-functions) |