Celsius to Fahrenheit in C++

Program to convert temperature from degree centigrade to Fahrenheit.

Source code :


#include <iostream>

using namespace std;

int main()
{
  int celcius = 100; // Change the celcius here
  float fahrenhiet;
  
  fahrenhiet = 9/5*(celcius+32);
  
  cout<<"Fahrenhiet : "<<fahrenhiet;
  
  return 0;
}

Output :

Fahrenhiet : 132

Output :


                

Comments :