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