Advertisement
Guest User

Here

a guest
Feb 13th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. def force(m1, m2, r):
  2. g = 6.673*(10**-8)
  3. f = (g*m1*m2)/(r**2)
  4. return (f)
  5.  
  6.  
  7. def inputs():
  8. m1 = float(input("Please enter the first number: "))
  9. m2 = float(input("Please enter the second number: "))
  10. r = float(input("Please enter the distance: "))
  11. print("The Gravitional Force is: ", force(m1, m2, r))
  12. inputs()
  13. inputs()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement