convert kilogram to pound using while loop. In this program zero signals the end of input?
Answers
Answered by
1
Explanation:
#include<stdio.h>
int main()
{
const float POUND = 2.20462;
float kg;
printf("Enter weight in Kilograms\n");
scanf("%f", &kg);
printf("Weight in Pounds is %f\n", (kg * POUND));
return 0;
}
Output 1:
Enter weight in Kilograms
5
Weight in Pounds is 11.023099
Output 2:
Enter weight in Kilograms
14
Weight in Pounds is 30.864678
i hope it's helpful for you
Similar questions