Advertisement
Guest User

Untitled

a guest
Feb 20th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.50 KB | None | 0 0
  1.     printf("%10s  %10s  %10s  %10s\n", "planet", "gravity", "g/earth g", "weight 200");
  2.     grav_mercury = (6.67408e-17*3.3022e+23) / (2439.7*2439.7);
  3.     printf("%10s  %10.2e  %10.3f  %10.3f\n", "mercury", grav_mercury, grav_mercury/ 9.800425,(grav_mercury / 9.800425)*200.0);
  4.     grav_venus = (newton_grav*4.8685e+24) / (6051.8*6051.8);
  5.     printf("%10s  %10.2e  %10.3f  %10.3f\n", "venus", grav_venus, grav_venus/ 9.800425, (grav_venus / 9.800425)*200.0);
  6.     grav_earth = (newton_grav*5.9736e+24) / (6378.1*6378.1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement