Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def force(m1, m2, r):
- g = 6.673*(10**-8)
- f = (g*m1*m2)/(r**2)
- return (f)
- def inputs():
- m1 = float(input("Please enter the first number: "))
- m2 = float(input("Please enter the second number: "))
- r = float(input("Please enter the distance: "))
- print("The Gravitional Force is: ", force(m1, m2, r))
- inputs()
- inputs()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement