hola....✋☺
write a java programm converting meter to centimeter...
plz friends help me........❤❤❤❤❤❤❤
Answers
Answered by
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.");
}
}
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