Computer Science, asked by harsita4659, 1 year ago

hola....✋☺
write a java programm converting meter to centimeter...
plz friends help me........❤❤❤❤❤❤❤

Answers

Answered by aditya1984
1
import java.util.Scanner;

public class MeasurementConversion {

public static void main(String[] args) {

final double CM = 100;

Scanner in = new Scanner(System.in);

System.out.print("Enter length in meters : ");
double mtr = in.nextDouble();

double ans = mtr * CM;


System.out.println(mtr + " meter is equal to " + ans + " cm.");
}
}

harsita4659: thanks☺☺☺☺☺☺☺
Similar questions