178k views
20 votes
3 3) Write a program to convert distance from kilometer to miles​

User Thefallen
by
3.6k points

1 Answer

7 votes

Answer:

In this example, we will show you how to write a java program to convert kilometers to miles. The program gets the kilometer value from the user and store it in the variable. Then it is dividing the kilometer value by 1.609344 which will give the values in terms of miles.

Step-by-step explanation:

User Thurman
by
3.6k points