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