当前位置:网站首页>[learn C and fly] 1day Chapter 2 (exercise 2.2 find the temperature of Fahrenheit corresponding to 100 ° f)
[learn C and fly] 1day Chapter 2 (exercise 2.2 find the temperature of Fahrenheit corresponding to 100 ° f)
2022-07-02 02:16:00 【Try to be beautiful】
practice 2.2 Find the Fahrenheit temperature 100°F The corresponding Celsius temperature
Given a Fahrenheit temperature F, This question requires the preparation of procedures , Calculate the corresponding Celsius temperature C.
Calculation formula :C=5×(F−32)/9.
Ensure that both input and output are within the integer range .
demo
#include<stdio.h>
int main(void){
int fahr,celsius;
scanf("%d",&fahr);
celsius = 5*(fahr-32)/9;
printf("Celsius = %d\n",celsius);
return 0;
}
Input
150
Output

边栏推荐
- Openssl3.0 learning XXI provider encoder
- Sword finger offer 47 Maximum value of gifts
- Quality means doing it right when no one is looking
- Open that kind of construction document
- leetcode2305. 公平分发饼干(中等,周赛,状压dp)
- As a software testing engineer, will you choose the bank post? Laolao bank test post
- Sword finger offer 29 Print matrix clockwise
- Redis有序集合如何使用
- Infix expression to suffix expression (computer) code
- Opencascade7.6 compilation
猜你喜欢

No programming code technology! Four step easy flower store applet

Redis环境搭建和使用的方法

Software development life cycle -- waterfall model

Cesium dynamic diffusion point effect

大厂裁员潮不断,双非本科出身的我却逆风翻盘挺进阿里

Pytest testing framework

【带你学c带你飞】1day 第2章 (练习2.2 求华氏温度 100°F 对应的摄氏温度

Sword finger offer 62 The last remaining number in the circle

Ar Augmented Reality applicable scenarios

Architecture evolution from MVC to DDD
随机推荐
es面試題
JVM面试篇
Decipher the AI black technology behind sports: figure skating action recognition, multi-mode video classification and wonderful clip editing
Golang lock
pytest 测试框架
AR增强现实可应用的场景
leetcode373. 查找和最小的 K 对数字(中等)
CVPR 2022 | 大连理工提出自校准照明框架,用于现实场景的微光图像增强
Flutter un élément au milieu, l'élément le plus à droite
How does MySQL solve the problem of not releasing space after deleting a large amount of data
Quality means doing it right when no one is looking
leetcode2311. 小于等于 K 的最长二进制子序列(中等,周赛)
1069. Division of convex polygons (thinking, interval DP)
how to add one row in the dataframe?
how to come in an investnent bank team
2022 Q2 - 提升技能的技巧总结
Deployment practice and problem solving of dash application development environment based on jupyter Lab
Duplicate keys detected: ‘0‘. This may cause an update error. found in
es面试题
MySQL如何解决delete大量数据后空间不释放的问题