编写程序,将摄氏温度(C)转换为华氏温度(F),转换公式为F=9C/5+32
编写程序,将摄氏温度(C)转换为华氏温度(F),转换公式为F=9C/5+32
日期:2012-03-24 08:20:15 人气:2
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
int main()
{
float F,C;
cout<<"华氏温度:";
cin>>F;
C=5.0/9*(F-32);
cout<<"华氏"<<F<<"度=摄氏&qu