Answers for "c# program for convert kg to pound"

C#
0

c# program for convert kg to pound

 
    class Program
    {
        static void Main(string[] args)
        {
 
            Console.WriteLine("C# KG to LB program\n");
 
            Console.Write("Enter a number in KG: ");
            double kilograms = Convert.ToDouble(Console.ReadLine());
 
            double pounds = kilograms * 2.20462262185;
            Console.WriteLine(kilograms + " kilograms is " + pounds + " pounds");
 
            Console.ReadLine();
        }
    }
 
Posted by: Guest on February-03-2021

C# Answers by Framework

Browse Popular Code Answers by Language