fork download
  1. #include<stdio.h>
  2.  
  3. int main()
  4.  
  5. {
  6. float F,C;
  7. printf("Type the value of the temperature in Celsius:");
  8.  
  9. scanf("%f", &C);
  10.  
  11. F=((C*9)/5)+32;
  12.  
  13. printf("equivalent temperature in Fahrenheit=%.2f F\n",F);
  14. return 0;
  15.  
  16. }
Success #stdin #stdout 0s 5284KB
stdin
32
stdout
Type the value of the temperature in Celsius:equivalent temperature in Fahrenheit=89.60 F