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