#include<stdio.h>
#include<string.h>
#define DANWEI_PER 3.2808e-2
#define INCH_PER 12
int main(void)
{
int feet;
float height,inches;
printf("Enter a height in centimeters: ");
scanf("%f",&height);
while(height>0)
{
feet=height*DANWEI_PER;
inches=(height*DANWEI_PER-feet)*INCH_PER;
printf("%d.0 cm = %d feet, %.1f inches\n",(int)height,feet,inches);
printf("Enter a height in centimeters(<=0 to quit): ");
scanf("%f",&height);
}
if(height/10<1)
{
printf("bye\n");
}
return 0;
}