-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Code cleanup gitignore addition as well as python version addition.
- Loading branch information
1 parent
924d1da
commit 29f0940
Showing
3 changed files
with
16 additions
and
4 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
16 changes: 16 additions & 0 deletions
16
Convert different pi numbers to new pi/Old_pi_to_new_pi.py
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,16 @@ | ||
# Diamiter Variable | ||
diamiter = 10 | ||
|
||
# Radius variable | ||
radius = diamiter / 2 | ||
|
||
# Stateing of input request | ||
print("Input varitation of py you want to convert to new pi") | ||
pi = float(input()) | ||
|
||
# Calculation | ||
cal1 = ((radius * radius) * pi) / 100 | ||
|
||
# Display results | ||
print("The new pi is: " + str(cal1)) | ||
print("Thank you for using Seiling old pi to new pi converter") |