fork(1) download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int main (void)
  4. {
  5. float F,T;
  6.  
  7. scanf("%f",&T);
  8.  
  9. printf("輸入華氏溫度:%f\n",T);
  10.  
  11. F = 9*T/5+32;
  12.  
  13. printf("攝氏溫度是:%f",F);
  14. return 0;
  15.  
  16. }
  17.  
Success #stdin #stdout 0.01s 5284KB
stdin
25.8
stdout
輸入華氏溫度:25.799999
攝氏溫度是:78.440002