Menu
Question Index
...

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;
    }

}

Doubts

Problems

Topic: Basic Arithmetic Operators In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App