Skip to content

Instantly share code, notes, and snippets.

@bernardoVale
Created March 30, 2013 22:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bernardoVale/5278678 to your computer and use it in GitHub Desktop.
Save bernardoVale/5278678 to your computer and use it in GitHub Desktop.
#include <cstdlib>
#include <iostream>
using namespace std;
int main() {
cout << "\nExercício Du Gay";
//Declaracao de variaveis.
float temp,faren;
//Leitura
cout << "\nInforme a Temperatura:";
cin >> temp;
//Aplicação da Fórmula F = C*1.8+32
faren = temp*1.8+32;
//Exibe resultado
cout <<"Resultado:"<<faren;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment