fork download
  1.  
  2.  
  3. #include <stdio.h>
  4. int main()
  5. {
  6. float celsius, fahrenheit;
  7. printf("Enter temperature in Celsius: ");
  8. scanf("%f", &celsius);
  9.  
  10. fahrenheit = (celsius * 9 / 5) + 32;
  11. printf("%f Celsius = %f Fahrenheit", celsius, fahrenheit);
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 5312KB
stdin
Standard input is empty
stdout
Enter temperature in Celsius: 0.000000 Celsius = 32.000000 Fahrenheit