Friday, 8 June 2018

Program to convert Temparature in Celsius to Fahrenheit

#include<stdio.h>

int main()
{
        float celsius, fahrenheit;
    printf("\n\nEnter temperature in Celsius: ");
    scanf("%f", &celsius);
   
    fahrenheit = (1.8*celsius) + 32;
    printf("\n\n\nTemperature in Fahrenheit is: %f ", fahrenheit);

    return 0;
}


No comments:

Post a Comment