C Program to Convert Pounds to Kilograms

In this article, we are going to learn about a simple C program, in which we are going to convert the weight from pounds to kilograms. This type of C program is very simple, provided that you know the simple conversion formula, and you can write basic C programs.

C Program to Convert Pounds to Kilograms

So, here is the conversion formula for pounds to kilograms –

kg = pd / 2.2046

Here, pd is the weight in pounds, and we are just dividing it by 2.2046, to get the weight in kg.

In the video below, you can find a detailed explanation and program for converting the weight from pounds to kg, and following this video, you can also write this simple program for converting weight from Pounds to Kg.

Here is the C program to convert the weight from Pounds to Kg.

#include <stdio.h>

int main() {
double pounds, kg;

// Asking the user to enter weight in pounds
printf(“Enter weight in pounds: “);
scanf(“%lf”, &pounds);

// Convert pounds to kilograms
kg = pounds / 2.2046;

// Display the converted weight in kilograms
printf(“%.2lf pounds is %.2lf kilogramsn”, pounds, kg);

return 0;
}

Program Output 1 –
Enter weight in pounds: 50
50.00 pounds is equal to 22.68 kilograms

Program Output 2 –
Enter weight in pounds: 220
220.00 pounds is 99.79 kilograms