Computer Science, asked by nupurthapa4, 11 months ago

Program in java to display the distance in metres and feet for the values entered in kilometres

Answers

Answered by adit58
2

It is called the Blangdongdeinsten system introduced by the Dutch colonialists in JAVA


adit58: It is spelt as blandongdiensten system sorry my bad
Answered by mn121
4

import java.util.*;

public class conversion

{

public static void main(String args[])

{

Scanner in = new Scanner(System.in);

double km,m,f;

System.out.println("Enter distance in kilometers = ");

km=in.nextDouble();

m=km*1000;

f=km*3280.84;

System.out.println("Distance in meter = "+m+"\nDistance in foot = "+f);

}

}

Similar questions