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