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