logo image

C# program to convert feet to inches

Views: 14

Following program shows you how to convert feet to inches. In this program we get feet from user, we get those we need to multiply with 12 so that we get in inches

using System;

class MainClass {
    public static void Main (string[] args) {
    Console.WriteLine ("Please enter feet:");
    double feet = Convert.ToDouble(Console.ReadLine());
    double inches = feet * 12;
    Console.WriteLine(inches + " Inches");


Please enter feet:
240 Inches
We are looking for Interns!
Send your resumes to
[email protected]