Java program that convert meters to miles, feet, and inches
###### Posted by Samath
Last Updated: February 08, 2021

Write a Java program that prompts the user for measurement in meters and then converts it to miles, feet, and inches.

Example:

Please enter a Measurement in Meters: 50
Miles: 0.0311
Feet: 164.0420
Inches: 1968.5039

```import java.util.Scanner;

public class Main
{
public static void main(String[] args) {

Scanner input = new Scanner(System.in);

double meters;
double miles;
double feet;
double inches;

System.out.print("Please enter a Measurement in Meters: ");
meters = input.nextDouble();

input.close();

miles = meters * 0.000621371192;
feet = meters * 3.2808399;
inches = meters * 39.3700787;

System.out.printf("\nMiles: %.4f\n", miles);

System.out.printf("Feet: %.4f\n", feet);

System.out.printf("Inches: %.4f",inches);
}
}
```
###### Java program calculate the cost per 100 miles and how far the car can go with the gas in the tank
Samath | Feb 09, 2021
###### Convert Roman numerals to decimal using Java
Samath | Jan 17, 2024
###### Convert Integer to Roman Numeral using C#
Samath | Jan 20, 2024
###### C program that takes an 8-bit number and Convert it to hexadecimal format
Samath | Jan 01, 2017
###### C++ Convert from Decimal to Octal
Samath | Jan 05, 2017
###### C++ Convert an Integer to Roman Numeral
Samath | Jan 20, 2024
###### Python to Convert Decimal to Binary, Octal and Hexadecimal
gideonna | Apr 13, 2016
###### C program to convert temperature from degree Celsius to Fahrenheit
Samath | Jan 02, 2017
###### Convert ASCII Character to Hexadecimal and Binary using C++
Samath | Jan 05, 2017
###### Python Convert Decimal to Binary or Binary to Decimal
Samath | Jan 09, 2017
###### Java unit conversion program that convert (fl. oz, gal, oz, lb, in, ft, mi) to (ml, l, g, kg, mm, cm, m, km)
Samath | May 08, 2021