Answer to Question #256005 in C# for Umar farouk

Question #256005
3.(Convert feet into meters) Write a program that reads a number in feet, converts it to meters, and displays the result. One foot is 0.305 meter
1
Expert's answer
2021-10-24T13:53:53-0400
using System;
using System.Collections.Generic;


namespace App
{


    class Program
    {


        static void Main(string[] args)
        {


            //reads a number in feet, converts it to meters, and displays the result. One foot is 0.305 meter
            Console.Write("Enter a number in feet: ");
            double feet = double.Parse(Console.ReadLine());
            double meters = feet*0.305;
            Console.WriteLine("Meters: " + meters.ToString());
            Console.ReadLine();
        }
    }
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS