All pastes #189385 Raw Edit

fah-to-cel

public text v1 · immutable
·published 2006-10-03 01:21 UTC
rendered paste body
#include <stdio.h>
/* ask user for input temperature and convert it
into the = in Celsius*/
        for fahr = 0, ..., 300 */

main ()
{
        int userinput;
        float fahr, celsius;

        printf("\nFahrenheit to Celsius Conversion\n\n");
        printf("Please insert a Fahrenheit temperature: ");
                fahr=getchar();
                celsius = (5.0/9.0) * (fahr-32.0);
                printf("\nThat is %1.2f in Celsius\n\n", celsius);


}