C Program to Convert temperature from degree centigrade to Fahrenheit

C Program to Convert temperature from degree centigrade to Fahrenheit
 #include<stdio.h>

int main() {
    float celsius, fahrenheit;

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

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

    return (0);
}

Comments

Popular posts from this blog

C Program to Display the ATM Transaction

Java programming language

Python Program to Print all Prime Numbers in an Interval