To convert temperature in centigrade to fahrenheit

Program:

#include<stdio.h>
#include<conio.h>
void main()
{
    float c, f;
    clrscr();
    printf("Enter the centigrade : ");
    scanf("%f", &c);
    f = (1.8 * c + 32);
    printf("\nThe fahrenheit is : %.2f", f);
    getch();
}

Output:

Enter the centigrade : 45
The fahrenheit is : 113.00