The formula for converting temperature in Celsius to Fahrenheit is:
f=9.0/5.0 * c + 32;
It means that User input = temperature in Celsius
and output is temperature in Fahrenheit.
Easyway Temperature Conversion C++ Program Celsius Into Fahrenheit Scale Formula - C++ Source Code |
Easyway Temperature Conversion C++ Program Celsius Into Fahrenheit Scale Formula - C++ Source Code
//Turbo C++ 3.0 IDE Easyway C++ Programs#include<iostream.h>
#include<conio.h>
void main()
{
float c,f;
cout<< "Enter Temperature in Celsius= ";
cin>>c;
f=9.0/5.0 * c + 32;
cout<<"Temperature in Fahrenheit="<<f;
getche();
}
Output Result of Temperature Conversion C++ Program Celsius Into Fahrenheit Scale Formula - C++ Source Code
Output Result of Temperature Conversion C++ Program Celsius Into Fahrenheit Scale Formula - C++ Source Code |
Nice programs in C++ programming. You may like Look at Degree Celsius to f conversion program in C Programming on EasyCodeBook.com
ReplyDeleteThanks for your time