1英尺foot=12英寸inch=30.48厘米cm
#include <stdio.h>
int main(){
double cm=0;
scanf("%lf",&cm);
int foot=cm/ 30.48;
int inch=((cm/ 30.48)-foot)*12;
printf("%d英尺%d英寸",foot,inch);
return 0;
}
1英尺foot=12英寸inch=30.48厘米cm
#include <stdio.h>
int main(){
double cm=0;
scanf("%lf",&cm);
int foot=cm/ 30.48;
int inch=((cm/ 30.48)-foot)*12;
printf("%d英尺%d英寸",foot,inch);
return 0;
}