F Centigrade to Fahrenheit conversion using function in CPP program | CodeTheta

Centigrade to Fahrenheit conversion using function in CPP program

August 21, 2019

Code :
#include<iostream>
#include<conio.h>
using namespace std;

int TempConvert(int);

int main() {
    int celsius, fahrenheit;
    cout<<"Enter the temperature in Celsius : ";
    cin>>celsius;
    TempConvert(celsius);
}

int TempConvert(int x) {
    int output;
    output = (( 9 * x ) / 5 ) + 32;
    cout<<"Fahrenheit value is: "<<output;
   
}


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

PRODUCTS

LISTS OF PRODUCTS

SERVICES

SKILLS
SOFTWARE DEVELOPMENT
WEBSITE DEVELOPMENT
WEB HOSTING
BULK SMS SERVICE
SEO SERVICE
ANDROID APPS
QR CODE / BARCODE
HARDWARE SERVICE
OUR WORK AREA