作者在 2020-11-14 15:28:38 发布以下内容
#include <stdio.h>
#define shehua 5.0/9.0
void temperatrues(double ccc);
const int a=32;
int main(void)
{
double hua;
printf("input hua:");
while(scanf("%lf",&hua))
{
temperatrues(hua);
printf("input hua:");
}
printf("finish");
return 0;
}
void temperatrues(double ccc)
{
double she;
const double kai=273.16;
she=shehua*(ccc-a);
printf("huashi : %f\n",ccc);
printf("sheshi : %f\n",she);
printf("kaishi : %f\n",she+kai);
//return ;
}
#define shehua 5.0/9.0
void temperatrues(double ccc);
const int a=32;
int main(void)
{
double hua;
printf("input hua:");
while(scanf("%lf",&hua))
{
temperatrues(hua);
printf("input hua:");
}
printf("finish");
return 0;
}
void temperatrues(double ccc)
{
double she;
const double kai=273.16;
she=shehua*(ccc-a);
printf("huashi : %f\n",ccc);
printf("sheshi : %f\n",she);
printf("kaishi : %f\n",she+kai);
//return ;
}