编写一个摄氏温度与华氏温度之间的转换程序
#include <stdio.h>
void main()
{double f,c;
printf("输入C");
scanf("%f",&c);
f=9.0/5.0*c+32;
printf("对应的摄氏温度为:%f\n",f);
}
总结:C语言的程序设计很基础,需要用心地钻研每一道题,每一个专业术语都仔细斟酌,做好每一道题,学好专业课程!
编写一个摄氏温度与华氏温度之间的转换程序
#include <stdio.h>
void main()
{double f,c;
printf("输入C");
scanf("%f",&c);
f=9.0/5.0*c+32;
printf("对应的摄氏温度为:%f\n",f);
}
总结:C语言的程序设计很基础,需要用心地钻研每一道题,每一个专业术语都仔细斟酌,做好每一道题,学好专业课程!