fork download
  1. #include <stdio.h>
  2. int main()
  3. {
  4. float Celcius, Fahrenheit;
  5. printf ("Put the value in Celcius : ");
  6. scanf("%f", &Celcius);
  7. Fahrenheit = ((Celcius * 9) / 5) + 32;
  8. printf("The value of Celcius to Fahrenheit : = %.2f", Fahrenheit);
  9.  
  10. return 0;
  11. }
Success #stdin #stdout 0s 5388KB
stdin
15
stdout
Put the value in Celcius : The value of Celcius to Fahrenheit : = 59.00