C Program To Convert Celsius To Fahrenheit Value Input Given By User

C Program To Convert Celsius To Fahrenheit Value Input Given By User

Code
// Wap to convert celsius to fahrenheit value given by user...

#include <stdio.h>
int main()
{
    float celsius, far;
    printf("Enter the celsius value.\n");
    scanf("%f", &celsius);
    far = (celsius * 9 / 5) + 32;
    printf("The value of the celsius temperature in fahrenheit is %.2f\n", far);
    return 0;
}
Output
Enter the celsius value.
43
The value of the celsius temperature in fahrenheit is 109.40

Post a Comment