Open Phuocdao opened 1 year ago
int main() { float C, F;
printf("Enter °F number: "); scanf("%f", &F);
C= (F-32) / 1.8;
printf("\n°C = %f", C);
printf("\n\nEnter °C number: "); scanf("%f", &C);
F= (C*1.8) + 32;
printf("\n°F = %f", F);
return 0; }
to convert Celsius to Fahrenheit and vice versa