PROGRAM TO CONVERT TEMPERATURE FROM CENTIGRADE TO FAHRENHEIT

/*PROGRAM TO CONVERT TEMPERATURE FROM CENTIGRADE TO FAHRENHEIT*/
#include<stdio.h>
#include<conio.h>
void main()
{
float f,c=0;
clrscr();
printf(“Enter the temperature in Centigrade: “);
scanf(“%f”,&c);
f=(9*c)/5+32;
printf(“Before conversion:\n”);
printf(“\tTemperature in Centigrade was: %f\n”,c);
printf(“After conversion:\n”);
printf(“\tTemperature in Fahrenheit is: %f”,f);
getch();
}

Leave a Reply

Your email address will not be published. Required fields are marked *