/*uses scanf() to get input*/
#include <stdio.h>
int main(void)
{
int fahr, cels;
printf("How many degrees? ");
scanf("%d", &fahr);
cels = 5*(fahr-32)/9; /*ask class: why not 5/9 * (fahr-32) here?*/
printf("%d degrees Fahrenheit is %d degrees Celsius\n", fahr, cels);
return 0;
}