//3.7_cpp
# include <iostream>
int main()
{
using namespace std;
const int K = 100;
const double F = 62.14;
const double L = 3.875;
double Ju=0,Ran=0,l=0;
double Ranl=1,Jul=100;
cout<<"Enter the UK the Fuel consumption: ";
cin>>l;
Ranl=l;
Ju=(F/K)*Jul;
Ran=Ranl/L;
double A = Ju / Ran;
cout<<"America the Fuel consumption: "<<A<<endl;;
return 0;
}
/*
输出结果:
Enter the UK the Fuel consumption: 12.4
America the Fuel consumption: 19.4187
Press any key to continue
*/
跟5题有类似