Write a Java program which accepts distance in kilo meters as input and displays its Miles equivalent, or vice versa, as per the choice of user.
Here is a Java program that accepts distance in kilometers or miles as input and converts it to the other unit:
import java.util.Scanner;
public class DistanceConverter {
public static void main(String[] args) {
Scanner input __________ __________ ______ _____ ________ __________ __________ ___ __________ _____.
____ ______ ______ _________ _____ _______ ______ ______.
_____ _____ __________ _________ _________ ___ ______ _______ __________ ______ _____.
_________ _____ _________ _________ ______ ________ _____ _____ ___.
__________ ______ _________ _________ ___ ___.
____ _____ _________ _______ _____ _________ _____ ____ ___ __________ _________.
________ ____ ________ ___ _________ _______.
____ _________ _______ _______ __________ __________ ___ ______ _______.
_________ _____ _____ ______ _____ ____ _____ __________ _____ _______ ______.
___ _____ ___ _____ ___ _________ _________ ___ ___.
__________ ____ _______ ___ ________.
_______ __________ _________ _________ ___ ______ _____ ____ ______ ___ ____ __________.
_______ ___ __________ _________ ________ _________ _______.
_______ ______ ___ ____ ____ ________ _________.
_______ __________ ___ ______ _________ ______ _______ ___ _________ _______ _____.
_______ ______ __________ ____ __________ _______ ________ ___.
__________ ________ ____ __________ __________ ___ __________ ______ ___ _____.
_______ ___ ________ ________ ________ ______ __________.
__________ ______ ______ __________ ____ _________ ______ __________ ______ ________ ___.
_____ _____ _______ ____ _______ _________ __________.
_____ ___ _____ _________ _____ _______ __________ _______ _______.
__________ _______ ____ ____ ______ ___.
_____ _______ ___ _______ __________ __________ ___ _______ _________ _____ ______ ______.
_________ ______ ____ ______ ________ __________ ________ ___ _________ _______.
___ ______ __________ ______ ______ __________ ___.
Get Full Answer on WhatsApp