j_U1p8.java

import java.util.Scanner; class prog8{ public static void main(String []args) { double a,b; Scanner sc=new Scanner(System.in); System.out.println("enter inches: "); a=sc.nextDouble(); b=a*(2.54); System.out.println("cm is "+b); } }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.