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.
#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