基础计算
#include <stdio.h>
int main() {
printf("请分别输入英尺与英寸" );
double foot;
double inch;
scanf("%lf %lf", &foot, & inch);
printf("身高为%f米.\n", ((foot + inch / 12) * 0.3048));
return 0;
}
#include <stdio.h>
int main() {
printf("请分别输入英尺与英寸" );
double foot;
double inch;
scanf("%lf %lf", &foot, & inch);
printf("身高为%f米.\n", ((foot + inch / 12) * 0.3048));
return 0;
}