📜  英尺厘米 c# 代码示例

📅  最后修改于: 2022-03-11 14:49:11.502000             🧑  作者: Mango

代码示例1
public static void Main()
        {
            Console.Write("Enter centimeter:");
            int centimeter = Convert.ToInt32(Console.ReadLine());
            double inch = 0.3937 * centimeter;
            double feet = 0.0328 * centimeter;
            Console.WriteLine("Inches is: " + inch);
            Console.WriteLine("Feet is: " + feet);
            Console.ReadLine();
        }