I have to write a program where centimeters is converted to feet and inches. For example, the input is 333.3 cm, the output should be 10 ft and 11.2 inches. I already have written the program as follow;
#define In 2.54
#define Ft 12
void main ()
printf ("\nEnter the value to be converted: ");
scanf ("%d", &a);
printf ("The area: %5.2f\n", X);
The result I got for 333.3 cm is 10.93. My question is how to convert that 0.93 to 11.2 inches. Any response will be truly appreciated. Thank you!