Menu
Question Index
...

Write code to convert a given number from feets (ft) to meters (m). Note that '1 foot = 0.3048 meters'.

Input (double) Output (double)
25 25 * 0.3048 = 7.62
71.87 71.87 * 0.3048 = 21.90598



class FeetToMetersConversion
{
    public static void main(String s[])
    {
        System.out.println("25 feet is same as " + convertToMeter(25) + " meters");

    }


    public static double convertToMeter(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