7-1 exercise 1-3
分数 15
全屏浏览题目
作者 sduwh_yh
单位 山东大学(威海)
print Fahrenheit-Celsius table for fahr=0,20,...,300; floating-point version.
the first row is 0 -17.8
输入格式:
无
输出格式:
table in floating-point version
输入样例:
在这里给出一组输入。例如:
输出样例:
0 -17.8
20 -6.7
40 4.4
60 15.6
80 26.7
100 37.8
120 48.9
140 60.0
160 71.1
180 82.2
200 93.3
220 104.4
240 115.6
260 126.7
280 137.8
300 148.9
#include<stdio.h>
int main(){
int F;
double C;
for(F=0;F<300;F+=20){
C = 5.0*(F -32)/9;