#include <stdio.h>
/*
출력자료형 함수이름(입력받을변수선언){
함수에 들어가는 코드
}
*/
// 섭씨 -> 화씨 온도 변환
float CelToFah(float Cel){
return 1.8*Cel+32;
}
// 화씨 -> 섭씨 온도 변환
int main() {
float Fah, Cel;
scanf("%f", &Cel);
scanf("%f", &Fah);
// Cel=(Fah-32)/1.8
printf("%f", CelToFah(Cel));
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: