How to write a C program to convert centigrade to Fahrenheit?

1

1 Answers

Ray Dart Profile
Ray Dart answered
This is about as simple as it gets in C.

------
#include <stdio.h>
int main()
{
        float convfactor=1.8;
        float offset=32.0;
        float invalue=0.0;

        printf("Give me a value in Celsiusn");
        scanf ("%f",&invalue);
        printf("This is %g in Fahrenheitn",invalue * convfactor + offset);
}

Answer Question

Anonymous