All pastes #189391 Raw Edit

Stuff

public text v1 · immutable
·published 2006-10-03 01:32 UTC
rendered paste body
#include <stdio.h>
      /* ask user for input temperature and convert it
      into the = in Celsius*/
/*              for fahr = 0, ..., 300 */
int main ()
      {
              /*int userinput;*/
              float fahr,celsius;
              printf("\nFahrenheit to Celsius Conversion\n\n");
              printf("Please insert a Fahrenheit temperature: ");
		scanf ("%f",&fahr);
            celsius = (5.0/9.0) * (fahr-32.0);
                      printf("\nThat is %1.2f in Celsius\n\n", celsius);
					return 0;
      }