bbb

7.
8.
9.#include<stdio.h>
int main(int argc,charargv[])
{
float TEMPRETURES(double fahrenheit);
double input;
printf("Please enter a tempreture in fah");
while(scanf("%lf",&input)==1){
TEMPRETURES(input);
printf("Enter next frarenheit (q to quit)😊;
scanf()
}
printf("Done!");
return 0;
}
float TEMPRETURE(double fahrenheit)
{
const double F_TO_C =32.0;
const double C_TO_K =273.16;
double Celsius,Kelvin;
Celcius=5.0/9.0
(fahrenheit-F_TO_C);
Kelvin=Celcius+C_TO_K;
printf("%.2f fahrenheit,equal to %.2f Celcius,and %.2f Kelvin",fahrenheit,Celcius.Kelvin);
return 0;
}

posted @ 2024-10-14 17:17  0421Hsz  阅读(6)  评论(0编辑  收藏  举报