distance from the sun to earth code example Example: distance between sun and earth 151.17 million km