+91-85006-22255
Write code to convert a given number from feets (ft) to centi meters (cm). Note that '1 foot = 0.3048 meters' and '1 meter = 100 centi meters'
class FeetToCMConversion { public static void main(String s[]) { System.out.println(" 25 feet is same as " + convertToCentiMeter(25) + " cm"); } public static double convertToCentiMeter(double feet) { double result = 0;
return result; } }
Topic: Basic Arithmetic Operators In Java
Read this topic Take test on this topic
Open In App