Skip to content

Commit

Permalink
Code cleanup gitignore addition as well as python version addition.
Browse files Browse the repository at this point in the history
  • Loading branch information
AsherSeiling committed May 27, 2020
1 parent 924d1da commit 29f0940
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
2 changes: 0 additions & 2 deletions Convert different pi numbers to new pi/Old_pi_to_new_pi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,4 @@ int main(){
// Display result
cout << "The new pi is: " + to_string(cal1) << endl;
cout << "Thank you for using Seiling old pi to new pi converter." << endl;


}
2 changes: 0 additions & 2 deletions Convert different pi numbers to new pi/Old_pi_to_new_pi.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,5 @@ public static void main(final String[] args) {
// Display Result
System.out.println("New pi is: " + calculation1);
System.out.println("Thank you for using Seiling Old to new pi converter");


}
}
16 changes: 16 additions & 0 deletions Convert different pi numbers to new pi/Old_pi_to_new_pi.py
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")

0 comments on commit 29f0940

Please sign in to comment.