已知华氏温度F与摄氏温度C的数学换算公式为:C=(F-32)*5/9 ,
编写一个C++程序,用于计算与华氏温度0,10,20,30,40,…,200依次对应的摄氏温度值(要求精确到小数点后2位).要求输出华氏温度和对应的摄氏温度.
请帮忙!
人气:154 ℃ 时间:2020-02-20 15:32:56
解答
#include
#include
using namespace std;
int main()
{
int i;
float C,F;
cout
推荐
猜你喜欢
- 若3的2n加1次方+3的2N次方=324,试求n的值
- 已知3b+4/b=a,求(a-b)(a-3b)-(3b-a)²的值
- 一个两位数 十位上的数字比个位数字小1,如果十位数字乘4,个位数字减少2,那么所得的两位数比原数大58求
- 已知椭圆的两焦点是F1(0,-1) F2(0,1)离心率e=1/2 求1.椭圆方程 2.若P在椭圆上,且(pf1的绝对值)- (p
- 燕子、鱼、青蛙、壁虎属于---动物.
- 小明把一个正方体骰子的6个面分别涂上颜色,其中1个面涂黑色,2个面涂白色,其余涂蓝色.把这个骰子掷出后,( )颜色的面朝上的可能性最大. A.黑 B.白 C.蓝 D.无法确定
- 静谧的近义词是?
- 合抱之木,生于毫末;九层之台,起于累土;千里之行,始于足下什么意思