I am trying to print the gravitational constant of Planet Earth. But it keeps on printing 0. What is wrong? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 2

I am trying to print the gravitational constant of Planet Earth. But it keeps on printing 0. What is wrong?

Would you mind to spend an hour finding the bug and explaining it to me? https://code.sololearn.com/cTgJw76K92c5/?ref=app

9th Jun 2020, 5:03 AM
Purple Requiem
Purple Requiem - avatar
2 Respostas
+ 5
You never called your "gravity" method.
9th Jun 2020, 5:09 AM
Kevin ā˜…
+ 1
Kevin Star Kevin Star OMG THANK YOU!!!!!!!
9th Jun 2020, 5:11 AM
Purple Requiem
Purple Requiem - avatar