C++程序设计:2.03
#include<iostream>
using namespace std;
int main()
{
double y,m;
cout<<"Enter a value for feet:";
cin>>y;
m=0.305*y;
cout<<y<<" "<<"feet is"<<" "<<m<<" "<<"meters"<<endl;
return 0;
}//BY tengmmvp
#include<iostream>
using namespace std;
int main()
{
double y,m;
cout<<"Enter a value for feet:";
cin>>y;
m=0.305*y;
cout<<y<<" "<<"feet is"<<" "<<m<<" "<<"meters"<<endl;
return 0;
}//BY tengmmvp
相关推荐