#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
float c,f;
cout<<"\n------------------------------------\n";
cout<<" Celsius to Farenheit Conversion \n";
cout<<"------------------------------------\n\n";
cout<<"Enter the value of temp in Celsius : ";
cin>>c;
f=(9/5)*c+32;
cout<<"\n\n Temp in Farenheit = "<<f;
getch();
}
#include<conio.h>
void main()
{
clrscr();
float c,f;
cout<<"\n------------------------------------\n";
cout<<" Celsius to Farenheit Conversion \n";
cout<<"------------------------------------\n\n";
cout<<"Enter the value of temp in Celsius : ";
cin>>c;
f=(9/5)*c+32;
cout<<"\n\n Temp in Farenheit = "<<f;
getch();
}
No comments:
Post a Comment