Q:

C# Program to convert feet to meter.

0

C# Program to convert feet to meter.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

This program is compiled and tested on a Visual Studio 2012.

using System;

namespace TechStudyCSharp
{
    class Program
    {
        static void Main(string[] args)
        {

            double meter, feet;
            Console.WriteLine("Enter feet :");
            feet = Convert.ToInt32(Console.ReadLine());
            meter = feet / 3.2808399;
            Console.WriteLine("\nFeet in meter : " + meter);          
            Console.ReadKey();
        }
    }
}

Result:

Enter feet :

50

Feet in meter : 15.2399999768352

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C# Program to convert celcius to farenheit... >>
<< C# Program to Multiply two Floating Point Numbers...