0
1.5kviews
Write a C program to convert weight in pounds to KG
1 Answer
0
265views

Explanation:-

  • Take a input from the user of weight in pounds and store it in a variable pound.
  • Initialize a variable KG with value 0.453592.
  • Print the output weight in KG as KG = 0.453592 * pound.

Code:-

#include<stdio.h>
#include<conio.h>
int main()
{
 const float KG=0.453592;
 float pound;
 printf("Enter weight in pounds:- ");
 scanf("%f", &pound);
 printf("Weight in kilograms is %f\n", pound*KG);
 getch();
}

Output:-

enter image description here

Please log in to add an answer.