发布网友 发布时间:2024-12-21 03:05
共1个回答
热心网友 时间:2024-12-21 07:09
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{float F,C;
cout<<"Please enter F:";
cin>>F;
C=5*(F-32)/9;
cout<<setiosflags(ios::fixed)<<setprecision(2);
cout<<"C="<<C<<endl;
return 0;
}
热心网友 时间:2024-12-21 07:06
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{float F,C;
cout<<"Please enter F:";
cin>>F;
C=5*(F-32)/9;
cout<<setiosflags(ios::fixed)<<setprecision(2);
cout<<"C="<<C<<endl;
return 0;
}
热心网友 时间:2024-12-21 07:12
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{float F,C;
cout<<"Please enter F:";
cin>>F;
C=5*(F-32)/9;
cout<<setiosflags(ios::fixed)<<setprecision(2);
cout<<"C="<<C<<endl;
return 0;
}