Temperature conversion: Censius to Farhenheit


#include<iostream.h>
#include<conio.h>

void main()
{
    float f, celsius;
    clrscr();

    cout<<"Enter Temperature(In Celsius) :";
    cin>>celsius;

    cout<<"\nCelsius is:"<<celsius;

    f = 1.8 * celsius + 32.0;

    cout<<"\nFarhenheit :"<<f;
}
Previous Post Next Post