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();
}
}
}
Comments
Leave a comment