当前位置:网站首页>[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
边栏推荐
- MySQL主从延迟问题怎么解决
- Word search applet design report based on cloud development +ppt+ project source code + demonstration video
- Sword finger offer 42 Maximum sum of continuous subarrays
- How to build and use redis environment
- 【liuyubobobo-玩转Leetcode算法面试】【00】课程概述
- 剑指 Offer 31. 栈的压入、弹出序列
- oracle创建只读权限的用户简单四步走
- Infix expression to suffix expression (computer) code
- RTL8189FS如何关闭Debug信息
- Redis有序集合如何使用
猜你喜欢
[question] - why is optical flow not good for static scenes
734. Energy stone (greed, backpack)
How to solve MySQL master-slave delay problem
MySQL operates the database through the CMD command line, and the image cannot be found during the real machine debugging of fluent
Comparative analysis of MVC, MVP and MVVM, source code analysis
Leetcode face T10 (1-9) array, ByteDance interview sharing
Infix expression to suffix expression (computer) code
Which is a good Bluetooth headset of about 300? 2022 high cost performance Bluetooth headset inventory
医药管理系统(大一下C语言课设)
leetcode2310. 个位数字为 K 的整数之和(中等,周赛)
随机推荐
How to execute an SQL in MySQL
Iterative unified writing method of binary tree
What style of Bluetooth headset is easy to use? High quality Bluetooth headset ranking
Software development life cycle -- waterfall model
Spend a week painstakingly sorting out the interview questions and answers of high-frequency software testing / automated testing
mysql列转行函数指的是什么
SQLite 3 of embedded database
MySQL主从延迟问题怎么解决
leetcode2309. 兼具大小写的最好英文字母(简单,周赛)
【毕业季】研究生学长分享怎样让本科更有意义
MySQL constraints and multi table query example analysis
Pytest testing framework
Questions d'entrevue
leetcode2311. 小于等于 K 的最长二进制子序列(中等,周赛)
Opengauss database backup and recovery guide
Types of exhibition items available in the multimedia interactive exhibition hall
leetcode2311. Longest binary subsequence less than or equal to K (medium, weekly)
leetcode2305. 公平分发饼干(中等,周赛,状压dp)
Construction and maintenance of business websites [14]
Ar Augmented Reality applicable scenarios