#include<iostream>
using namespace std;
int main()
{
const int inches_per_foot=12;
const int feet_per_yard=3;
int yards;
int feet;
int inches=0;
cout<<"yard,feet,inches:";
cin>>yards>>feet>>inches;
cout<<endl
<<inches+inches_per_foot*(feet+feet_per_yard*yards)
<<endl;
return 0;
}
把码,英尺和英寸表示·的长度转换为用英寸表示的长度
最新推荐文章于 2024-11-05 13:15:38 发布