Ϊʲô˵ tem û¶¨Òå°¡£¿°ïÎҸĸİɣ¿
#include <math.h>#include <stdio.h>
main()
{
float f;
double c;
printf("ÇëÊäÈëf: ");
scanf("%f",&f);
c=tem(f);
printf("c=%f",c);
}
double tem(float f)
{
double c;
c=(5/9.0)*(f-32);
return (c);
}

´ó¼ÒºÃ£¡ÎÒÊÇÐÂÀ´µÄ£¬ÎÒϲ»¶±à³Ì£¬½ñºó»¹Íû¸÷λǰ±²ÃǶà¶à¹ØÕÕ£¡Ð»Ð»£¡