C语言程序编程(江湖救急)

2024-12-14 11:18:23
推荐回答(2个)
回答1:

#include
int main(){
float temp;
printf("Please key in the temperature in farenhite:");
scanf("%f", &temp);
printf("\nThe corresponding temp in celcius is %5.2f", 5.0 / 9 * (temp - 32) );
return 0;
}

这是第一题,第二题自己搜去……很多

回答2:

第二题:
#include
int main()
{
int x,y,z;
int m;
int max(int,int);
printf("please input x,y,z:\n");
scanf("%d%d%d",&x,&y,&z);
m=max(x,y);
m=max(z,m);
printf("max=%d",m);
return 0;
}
int max(int x,int y)
{
if(x>y)
return x;
else
return y;
}
补充一下,分给楼上好了