Solar System Distances

Hey guys so i want to make a program tht outputs distance from Earth for example

Enter any planet or star : Venus

The distance from earth to venus  = 261M Km

so do i need to create a separate variables  containing distances and output them? then thr will be many many variables so any solution for this plz?

NOTE : I am coding in JAVA

Author: Suhail Pappu
Login to Answer
Sort By:
Oldest
|
Newest
|
Vote
|
My Answer