第三章 最简单的C程序设计——顺序程序设计

例3.1有人用温度计测量出华氏法表示的温度(如64。F),今要求把它转换成以摄氏法表示的温度(如17.8。C)。

#include<stdio.h>
int main()
{
float f,c;
f=64.0;
c=(5.0/9) * (f-32);
printf(“f=%f\nc=%f\n”,f,c);
return 0;
}
程序设计与C语言

相关文章:

  • 2021-06-12
  • 2021-06-17
  • 2021-08-22
猜你喜欢
相关资源
相似解决方案