c表示摄氏温度
f表示华氏温度
已知转换公式为:c=5*(f-32)/9
#include <stdio.h>
int transfer(f)\\自定义函数
{
return 5 * (f - 32) / 9;
}
int main()
{
int f=100;
int c;
c = transfer(f);\\调用函数
printf("%d\n", c);
return 0;
}
c表示摄氏温度
f表示华氏温度
已知转换公式为:c=5*(f-32)/9
#include <stdio.h>
int transfer(f)\\自定义函数
{
return 5 * (f - 32) / 9;
}
int main()
{
int f=100;
int c;
c = transfer(f);\\调用函数
printf("%d\n", c);
return 0;
}