Advertisement
Albert3069

5 weeks project - 202007032 최윤솔

May 3rd, 2020
413
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5.     double f_temp;
  6.     double c_temp;
  7.  
  8.     printf("화씨온도를 입력하시오\n");
  9.     scanf("%lf", &f_temp);
  10.     c_temp =(double) 5 / 9 * (f_temp - 32);
  11.     printf("섭씨온도는 %f입니다.", c_temp);
  12.  
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement