(Meta 2.3) conversion de grados centigrados a farenheit dev c++

1
#include <iostream> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main(int argc, char** argv) { int centigrados, f; printf (" \n Ingrese la temperatura en grados centigrados: "); scanf("%d",&centigrados); f = (centigrados*(9)/5)+32; printf ("\n La temperatura es de: %d grados farenheit \n", f); return 0; }

Transcript of (Meta 2.3) conversion de grados centigrados a farenheit dev c++

Page 1: (Meta 2.3) conversion de grados centigrados a farenheit dev c++

#include <iostream>

/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(int argc, char** argv) {

int centigrados, f;

printf (" \n Ingrese la temperatura en grados centigrados: ");

scanf("%d",&centigrados);

f = (centigrados*(9)/5)+32;

printf ("\n La temperatura es de: %d grados farenheit \n", f);

return 0;

}