The average distance between the Earth and the Sun is 149,600,000 km.
The time required to travel from the Earth to the Sun depends on the transport you are on. The followings are some of the interesting
examples :
Walking (4 km/hr) 
4270 years 
By car (100 km/hr) 
170 years 
By plane (800 km/hr) 
21 years 
By Voyager 1 (60,000 km/hr) 
3.5 months 
