You are on page 1of 1

//change F to C

#include<stdio.h>
int main()
{
float c;
int f;
float b;
printf("please enter degrees Fahrenheit\n");
scanf("%d",&f);
b = (float)5/9;
c = b*(f - 32);
printf("degrees Celsius %.3f\n",c);

You might also like