fork download
  1. #include <stdio.h>
  2. int main()
  3. {
  4. float F,c;
  5. printf("请输入华氏温度:");
  6. scanf("%f",&F);
  7. c=5.0/9*(F-32);
  8. printf("对应的摄氏温度为:%.2f\n",c);
  9. return 0;
  10. }
  11.  
  12.  
Success #stdin #stdout 0s 5284KB
stdin
52
stdout
请输入华氏温度:对应的摄氏温度为:11.11