 Program to Convert Pounds to Kilograms in C# – Programming, Pseudocode Example, C# Programming Example

# Program to Convert Pounds to Kilograms in C#

In this example, we will write a program to convert pounds to kilograms in C#. On the web you will show this example as C# lb to kg convertor.

Firstly we should know the ratio of lbs to kg. The following formula shows the lbs ratio of kg.

1 pound (lb) is equal to 0.45359237 kilograms (kg)= 1 lb = 0.45359237 kg

Example

Convert 5 lb to kilograms: m(kg) = 5 lb × 0.45359237 = 2.268 kg

Pounds to Kilograms conversion table

Here is the code how to convert Pounds to Kilograms

Output:

This is a C# program that converts pounds to kilograms. The program has a class called “Program” that contains a Main method, which is the entry point of the program.

In the Main method, the program starts by printing a message to the console asking the user to enter a number in pounds. The user’s input is then read and converted to a double-precision floating-point number using the “Convert.ToDouble” method.

Next, the program calculates the equivalent weight in kilograms by multiplying the weight in pounds by a constant value of 0.45359237. The result is then displayed on the console using the “WriteLine” method.

Finally, the program waits for the user to press the Enter key by calling the “ReadLine” method, which pauses the program until the user inputs something. This allows the user to see the result before the program exits.

### 1 Comment

• tom says:

why c#&nbsp ??

This site uses Akismet to reduce spam. Learn how your comment data is processed.