Thursday, October 16, 2014

Write a program to convert temp from celcious into ferenhit in C++



Prog:2 Write a program to convert temp from celcious into ferenhit.


#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
float f,c;
cout<<"enter celcious :";
cin>>c;
f=((9*c)/5)+32;
cout<<"The ferenhit is:"<<f;
getch();
}

Output:

Enter celcious :200
The ferenhit is:392

No comments: