/*
英尺到米的转换
转换公式:1米约等于3.28英尺
*/
#include <iostream>
using namespace std;
int main(){
double feet,meter;
cout<<"Enter the length in feet:"<<endl;
cin>>feet;
meter=feet/3.28;
cout<<feet<<" feet is "<<meter<<" meters"<<endl;
return 0;
}
英尺到米的转换
转换公式:1米约等于3.28英尺
*/
#include <iostream>
using namespace std;
int main(){
double feet,meter;
cout<<"Enter the length in feet:"<<endl;
cin>>feet;
meter=feet/3.28;
cout<<feet<<" feet is "<<meter<<" meters"<<endl;
return 0;
}