题解 | #温度转换#
温度转换
https://www.nowcoder.com/practice/ba83647087b7447783fa2384da6b3d44
#include <stdio.h> #include<math.h> int main () { float m,n; scanf("%f",&m); n=5.0/9.0*(m-32);//值得注意5/9不足唯一是表示0的,带上小数点就可以避免 printf("%.3f",n); return 0; }
温度转换
https://www.nowcoder.com/practice/ba83647087b7447783fa2384da6b3d44
#include <stdio.h> #include<math.h> int main () { float m,n; scanf("%f",&m); n=5.0/9.0*(m-32);//值得注意5/9不足唯一是表示0的,带上小数点就可以避免 printf("%.3f",n); return 0; }
相关推荐