/* airthmetic rules int+int=int int*int=int int%int=int int-int=int int/int= int truncated integer for example: 5/9 = 0 float(+, *,-,/)float=float double(+,*,-,/)double=double int(+,*,/,-)float=float 5/9 (float)(5)/9 (float)(5)/float(9) 5.0/9.0 - double in C contstant decimal value number always has type double ERROR: (float)(5/9) 5/9=0 (float)(0) = 0.0 float(+,-,*,/) double = double Problem 5 : Write a C program that converts Celsius temperature to the correspondent Fahrenheit temperature. The equation for converting a Celsius temperature to Fahrenheit is Fahrenheit=(9*Celsius/5)+32 Problem 6 : Write a C program that converts Fahrenheit temperature to Celsius temperature according to the following formula: Celsius= (5/9)*(Fahrenheit - 32) */ #include int main(){ double Fah, Cel; printf("enter Fahrenheit\n"); scanf("%lf",&Fah); //input double type use %lf lf stands for long float printf("Celsius temperature %f\n",(5.0/9)*(Fah - 32)); printf("enter Celsius\n"); scanf("%lf",&Cel); printf("Fahrenheit temperature %f\n",(9*Cel/5)+32); return 0; }