Q. Write a C program to convert kilograms to pounds.
Ans.
Formula for conversion kg to pounds:
1 kilogram = 2.20462262184878 pounds
Hence, pounds = 2.2 * kilograms
/*c program for conversion to kg to pound*/
#include<stdio.h>
#include<conio.h>
int main()
{
float kg,pound;
printf("Enter value of Kilograms : ");
scanf("%f",&kg);
pound=2.20462262184878*kg;
printf("\n\t-- Convert Kilograms to pounds --\n");
printf("\n%f kg = %f pound",kg,pound);
getch();
return 0;
}
The output of above program would be:
Related programs:
Length conversion programs
Width and mass Conversion programs
Area Conversion programs
Number System conversion programs
Other Conversion programs
Ans.
Formula for conversion kg to pounds:
1 kilogram = 2.20462262184878 pounds
Hence, pounds = 2.2 * kilograms
/*c program for conversion to kg to pound*/
#include<stdio.h>
#include<conio.h>
int main()
{
float kg,pound;
printf("Enter value of Kilograms : ");
scanf("%f",&kg);
pound=2.20462262184878*kg;
printf("\n\t-- Convert Kilograms to pounds --\n");
printf("\n%f kg = %f pound",kg,pound);
getch();
return 0;
}
The output of above program would be:
Figure: Screen shot for Convert Kilograms to pounds C program |
Related programs:
Length conversion programs
- Convert meters to feet and feet to meter
- Convert meters to inches and Inches to meter
- Convert inches to feet and feet to inches
- Convert feet to yards and feet to yards
Width and mass Conversion programs
- Convert pounds to kilograms
- Convert tons to kilograms
- Convert kilograms to tons
Area Conversion programs
- Convert square inches to square feet
- Convert square feet to square inches
- Convert acres to square feet
- Convert square feet to acres
Number System conversion programs
- Convert decimal to binary program
- Convert decimal to octal program
- Convert decimal to hexadecimal program
- Convert binary to decimal program
- Convert binary to hexadecimal program
- Convert binary to octal program
- Convert octal to decimal program
- Convert octal to binary program
- Convert hexadecimal to binary program
- Convert hexadecimal to decimal program
Other Conversion programs
- Convert digits of number to word program
- Convert roman to number program
- Convert number to roman program
Saved as a favorite, I really like your site! raspberry ketone
ReplyDeleteHere is my website :: quality raspberry ketone lean
i need c program of conversion sush as currency,area,time,vilocity,volume,temperature pressure,power,energy,mass,lenght, somebody can help me to make this as one program by function,.
ReplyDeleteI updated above conversion C program link (checkout).
DeleteRemaining link I will update soon.
(If you require any C program source code immediately/quickly, then write me your problem now.)