fork download
  1. #include <stdio.h>
  2. int main(void)
  3. {
  4. double f_temp;
  5. double c_temp;
  6.  
  7. printf("화씨온도를 입력하시오: ");
  8. scanf("%lf", &f_temp);
  9. c_temp = 5.0 / 9.0 * (f_temp - 32);
  10. printf("섭씨온도는 %f입니다 \n", c_temp);
  11.  
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0.01s 5328KB
stdin
Standard input is empty
stdout
화씨온도를 입력하시오: 섭씨온도는 -17.777778입니다