About Me

My photo
Raipur, Chhattisgarh, India
Hi , I am Amit Thakur. I have worked as a QA Engineer for two years and as a Java Developer for one year in NIHILENT TECHNOLOGIES PVT. LTD., Pune.Currently I am working as DEAN (Research & Development) in Bhilai Institute of Technology, Raipur.

Tuesday, September 3, 2013

C Program to Convert temperature from degree centigrade to Fahrenheit

#include<stdio.h>
#include<conio.h>

void main()
{
float celsius,fahrenheit;
clrscr();

printf("Enter temp in Celsius : ");
scanf("%f",&celsius);

fahrenheit = (1.8 * celsius) + 32;
printf("Temperature in Fahrenheit : %f ",fahrenheit);

getch();
}
Output :
Enter temp in Celsius : 32
Temperature in Fahrenheit : 89.59998

No comments: