L1-004. 计算摄氏温度
来源:互联网 发布:淘宝助理怎么导入图片 编辑:程序博客网 时间:2024/05/14 04:30
给定一个华氏温度F,本题要求编写程序,计算对应的摄氏温度C。计算公式:C = 5*(F-32)/9。题目保证输入与输出均在整型范围内。
输入格式:
输入在一行中给出一个华氏温度。
输出格式:
在一行中按照格式“Celsius = C”输出对应的摄氏温度C的整数值。
输入样例:150输出样例:
Celsius = 65
#include <iostream>
#include <cstdio>
#include <string>
#include <cstring>
#include <algorithm>
#include <stack>
#include <queue>
#include <map>
#include <set>
using namespace std;
int main()
{
int f;
cin>>f;
cout<<"Celsius = "<<5*(f-32)/9;
}
0 0
- L1-004. 计算摄氏温度
- L1-004. 计算摄氏温度
- L1-004. 计算摄氏温度
- L1-004. 计算摄氏温度
- L1-004. 计算摄氏温度
- L1-004. 计算摄氏温度
- L1-004. 计算摄氏温度
- L1-004. 计算摄氏温度
- L1-004. 计算摄氏温度
- L1-004. 计算摄氏温度
- L1-004. 计算摄氏温度
- L1-004. 计算摄氏温度
- L1-004. 计算摄氏温度
- L1-004. 计算摄氏温度
- L1-004. 计算摄氏温度 Java
- 团队天梯赛L1-004. 计算摄氏温度
- (PTA详解)L1-004. 计算摄氏温度
- L1-4. 计算摄氏温度
- Android开发之Intent跳转到系统应用中的拨号界面、联系人界面、短信界面
- Ubuntu 安装mysql和简单操作
- string类型的格式化输出
- __stack_chk_fail栈检查失败
- 微信支付将向境外商户全面开放 支持九种外币
- L1-004. 计算摄氏温度
- C++第8次上机作业
- 《Hadoop进阶》利用Hadoop构建豆瓣图书推荐系统
- 谷歌借Google Play重返中国,这次能成功吗?
- Linux下Tomcat重新启动
- Solr入门之官方文档6.0阅读笔记系列(一)
- Charts调试
- EditPlus中配置具有<<<<DOS命令界面>>>的java环境
- C与C++混合是出现连接错误,错误代码:1853