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