Popular Posts

28.Write a program to take temperature in celcious scale and convert in Fahrenheit scale .

28.Write a program to take temperature in celcious scale and convert in Fahrenheit scale .

#include
#include
int main()
{
clrscr();
float c,f;
cout<<"Enter temperature in celcious scale: "; cin>>c;
f=(9*c)/5+32;
cout<<"Temperature in Fahrenheit scale: "< getch();
return 0;
}

Output:

Enter temperature in celcious scale: 25
Temperature in Fahrenheit scale: 77

No comments: