#include<iostream> // it is a library used for display
#include<conio.h> // its is also a library used for input output statement
using namespace std;
main()
{
float c,f ; // as i discussed earlier float is used for floating values like value is decimel so two variable are take
cout<<"Enter the temperature in Fahrenheit ? :"; // its just comment whatever you want can add here within "" after cout
cin>>f; // giving a value which will convert the program to Fahrenheit
c= (f-32)*5.0/9.0; // it is the formula to convert to fahrenheit
cout<<"Temperature in celsius = "<<c; // here its show the value save in the c throgh the formula
}
/* Here is your temperature converter to farhrenheid is ready */
#include<conio.h> // its is also a library used for input output statement
using namespace std;
main()
{
float c,f ; // as i discussed earlier float is used for floating values like value is decimel so two variable are take
cout<<"Enter the temperature in Fahrenheit ? :"; // its just comment whatever you want can add here within "" after cout
cin>>f; // giving a value which will convert the program to Fahrenheit
c= (f-32)*5.0/9.0; // it is the formula to convert to fahrenheit
cout<<"Temperature in celsius = "<<c; // here its show the value save in the c throgh the formula
}
/* Here is your temperature converter to farhrenheid is ready */
Comments
Post a Comment