Computer Science, asked by Bristi10, 1 month ago

write as java programming To change the unit mm to m and km. 4.

Answers

Answered by llchummill
0

Answer:

* Java program to convert centimeter into meter and kilometer

*/

import java.util.Scanner;

class Test

{

public static void main(String args[])

{

double cm, meter, km;

Scanner op=new Scanner(System.in);

/* Input length in centimeter from user */

System.out.print("Enter length in centimeter: ");

cm=op.nextDouble();

/* Convert centimeter into meter and kilometer */

meter = cm / 100.0;

km = cm / 100000.0;

System.out.println("Length

Similar questions