What? The sun shines on Mars.
It's like earth? No way.
Who said it's "like earth"? And what makes you think the sun doesn't hit Mars?
Facts about Mars' orbit:
Average distance from the sun: 141,633,260 miles (227,936,640 km). By comparison: 1.524 times that of Earth.
Perihelion (closest): 128,400,000 miles (206,600,000 km). By comparison: 1.404 times that of Earth.
Aphelion (farthest): 154,900,000 miles (249,200,000 km). By comparison: 1.638 times that of Earth.