fork download
  1. #include <stdio.h>
  2.  
  3. main() {
  4.  
  5. float cent, fah;
  6.  
  7. printf("Introduce una temperatura en centigrados:");
  8. scanf("%f", &cent);
  9. fah = 1.8*cent+32;
  10.  
  11. printf("La temperatura en Fahrenheit es: %f", fah);
  12.  
  13. }
Success #stdin #stdout 0s 5320KB
stdin
25
stdout
Introduce una temperatura en centigrados:La temperatura en Fahrenheit es: 77.000000