温度转换 题目:温度转换 已知华氏温度f与摄氏温度c之间的转换公式是: C=5/9*(F-32) 编写程序,将用户输入的摄氏温度转换为华氏温度,并输出结果。 温度要求均为整数 代码: #include <stdio.h> #include <math.h> int main() { int c; int f; scanf("%d",&c); f=(9*c)/5 + 32; printf("%d",f); return 0; }