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