Structure of the Problem Requirements
The Program converts temperature from Fahrenheit Scale to Celsius Scale in C++ program. The Conversion formula is Celsius scale = (Fahrenheit - 32 )*5/9 . The program will prompt to enter the temperature in Fahrenheit and then show the equal temperature in Celsius scale .Source Code
#include<iostream>
using namespace std;
int main ()
{
cout<<"\t \t \t LEP Tutorials \n \n \n ";
float Fahrenheit,celsious;
cout<<" Temperature in Fahrenheit Scale : ";
cin>>Fahrenheit;
celsious = (Fahrenheit - 32)*5/9;
cout<<endl;
cout<<" Temperature in Celsius Scale : "<<celsious;
return 0;
}
Output of the Program
Asad Niazi is Software Engineer , Programmer, Web Developers and a young mentor of Tech Solutions Desk and Blogging Solutions . Asad Love to writes about Technology, Programming, Blogging and make money online.
0 comments:
Post a Comment