当前位置:网站首页>[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

边栏推荐
- Golang lock
- 1069. Division of convex polygons (thinking, interval DP)
- leetcode2311. 小于等于 K 的最长二进制子序列(中等,周赛)
- C # use system data. The split mixed mode assembly is generated for the "v2.0.50727" version of the runtime, and it cannot be loaded in the 4.0 runtime without configuring other information
- es面試題
- What style of Bluetooth headset is easy to use? High quality Bluetooth headset ranking
- Open that kind of construction document
- MySQL constraints and multi table query example analysis
- How to turn off the LED light of Rog motherboard
- essay structure
猜你喜欢

Cesium dynamic diffusion point effect

Software development life cycle -- waterfall model

Sword finger offer 62 The last remaining number in the circle

SQLite 3 of embedded database

leetcode2310. 个位数字为 K 的整数之和(中等,周赛)

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

No programming code technology! Four step easy flower store applet

leetcode2311. 小于等于 K 的最长二进制子序列(中等,周赛)

Opencascade7.6 compilation

leetcode2311. Longest binary subsequence less than or equal to K (medium, weekly)
随机推荐
【带你学c带你飞】4day第2章 用C语言编写程序(练习 2.5 生成乘方表与阶乘表
golang---锁
An analysis of circuit for quick understanding
剑指 Offer 29. 顺时针打印矩阵
leetcode2312. Selling wood blocks (difficult, weekly race)
附加:信息脱敏;
leetcode2311. 小于等于 K 的最长二进制子序列(中等,周赛)
Word search applet design report based on cloud development +ppt+ project source code + demonstration video
Kibana操控ES
Sword finger offer 29 Print matrix clockwise
Opencascade7.6 compilation
Flutter un élément au milieu, l'élément le plus à droite
Deep learning: a solution to over fitting in deep neural networks
[C #] use regular verification content
Webgpu (I): basic concepts
【读书笔记】程序员修炼手册—实战式学习最有效(项目驱动)
mysql列转行函数指的是什么
LFM信号加噪、时频分析、滤波
Design and implementation of key value storage engine based on LSM tree
es面試題