#include <stdio.h>
int main (){
double centimeter;
scanf("%lf", ¢imeter);
double meter = centimeter / 100;
double doubleFoot = (meter / 0.3048);
int foot = doubleFoot;
double doubleInch = (doubleFoot - foot) * 12;
int inch = doubleInch;
printf("%d %d", foot, inch);
return 0;
}
2-1. 厘米转换英尺英寸
于 2023-08-01 14:31:00 首次发布