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