F Centigrade to Fahrenheit conversion CPP program | CodeTheta

Centigrade to Fahrenheit conversion CPP program

August 21, 2019

Code : 
#include<iostream>
#include<conio.h>
using namespace std;
int main() {
    int celsius, fahrenheit;
    cout<<"Enter the temperature in Celsius : ";
    cin>>celsius;
    fahrenheit = (( 9 * celsius ) / 5 ) + 32;
    cout<<"Fahrenheit value is : "<<fahrenheit;
}


Output :
Enter the temperature in Celsius : 40
Fahrenheit value is : 104

IDE Used To Test This Code : DEV C++.

Try this code in your computer for better understanding. Enjoy the code. If you have any Question you can contact us or mail us.We will reply you as soon as possible.

Post a Comment