Added proportions.py

This commit is contained in:
Kenneth John Odle 2023-08-08 15:15:44 -04:00
parent 19086e33e9
commit d25367329a

13
proportions.py Normal file
View File

@ -0,0 +1,13 @@
# Put a zero in for the unknown alue
n1 = 1
d1 = 2
n2 = 0
d2 = 16
if n2==0:
answer = d2 * n1 / d1
print("n2 = ", answer)
if d2==0:
answer = n2 * dl / nl
print("d2 = ", answer)