ahmed salah

ahmed salah

  • 1.1k
  • 496
  • 30.7k

how to solve calculation formula output using python 3 ?

Dec 6 2023 10:06 PM

I working on python 3.10 . i face issue solving formula below 
and get out put from it 
so How to solve this calculation formula using python 

GRAVitional force is attractive force that exist between two masses it can calculated by using the following formula

GM m
----------
r2


write code that accept these constants as input and produces this output
sample input
g=6.67 * 10 power 11
MEarth=6.0 * 10power 24
m Moon =7.34 * 10 power 22
r=3.84 * 10 power 8     


sample ouput
Fg=1.99 * 10 power 20
 


Answers (1)