gravitational acceleration of mars code example Example: acceleration due to gravity on mars 3.711 meters per second squared.