//program to convert temperature..
#include<iostream.h>
using namespace std;
main()
{
system("cls");
int c,f;
cout<<"to find convert celius into fahrenheit"<<endl;
cout<<"enter value of celius"<<endl;
cin>>c;
f=c*9/5+32;
cout<<"fahrenheit="<<f<<endl;
cout<<"to find convert fahrenheit into celius"<<endl;
cout<<"enter value of fahrenheit"<<endl;
cin>>f;
c=f-32*9/5;
cout<<"fahrenheit="<<c<<endl;
system("pause");
}
#include<iostream.h>
using namespace std;
main()
{
system("cls");
int c,f;
cout<<"to find convert celius into fahrenheit"<<endl;
cout<<"enter value of celius"<<endl;
cin>>c;
f=c*9/5+32;
cout<<"fahrenheit="<<f<<endl;
cout<<"to find convert fahrenheit into celius"<<endl;
cout<<"enter value of fahrenheit"<<endl;
cin>>f;
c=f-32*9/5;
cout<<"fahrenheit="<<c<<endl;
system("pause");
}
No comments:
Post a Comment