By 26/03/2014 13 Comments

Exercise Program # 04 Operators in C++

Q: Develop a program that will convert the temperature from degree Celsius to degree Fahrenheit. User input the temperature in Celsius. The relation is F=5/9*C+32?

Answer:

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

void main()
{      
     float Ctemp, Ftemp;

     cout<<"Enter the temperature in Celsius: "; cin>>Ctemp;
     Ftemp=(9/5)*Ctemp+32;     
     cout<<endl<<"The temperature in Fahrenheit is: "<<Ftemp;  

     getch();
}






Posted in: C++ Exercises

Leave your valuable Comment

Have a natural attraction for women cosmetics and replica watches uk clothes, no
more than two for men the most attractive one, is to make their own driving experience, happy and can serve as the facade of the car, another is to highlight the taste edify sentiment rolex replica watch. The replica rolex is undoubtedly the most fashionable accessories, wear a suit to attend the activities, but also get a decent match on the replica watches .