Here we are going to illustrates you how to convert temperature from Celsius to Fahrenheit in C. You can see in the given example, we prompt the user to enter the temperature in celsius. The scanf() function gets the entered temperature and by using the following statement shown, the temperature is converted into Fahrenheit.
fahrenheit = (1.8 * celcius) + 32;
Here is the code:
Output will be displayed as:
Rs. 20,000 US$ 300
Today: Rs. 10,000 US$150
Course Duration: 30 hrs
Posted on: February 6, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles