编译软件:Xcode
将英尺英寸转化为米
printf("请输入身高,""如输入\"5 7 \"表示5英尺7英寸");
double foot;
double inch;
scanf("%lf %lf",&foot,&inch);
printf("身高为%f米\n",((foot+inch/12)*0.3048));
return 0;
printf("请输入身高,""如输入\"5 7 \"表示5英尺7英寸");
double foot;
double inch;
scanf("%lf %lf",&foot,&inch);
printf("身高为%f米\n",((foot+inch/12)*0.3048));
return 0;
HAN