fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  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; // your code goes here
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0.01s 5324KB
stdin
Standard input is empty
stdout
Introduce grados Celsius: Equivalente en Fahrenheit: 32.000000