Added proportions.py
This commit is contained in:
parent
19086e33e9
commit
d25367329a
13
proportions.py
Normal file
13
proportions.py
Normal 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)
|
Loading…
Reference in New Issue
Block a user