Phuocdao / Kain

C study
0 stars 0 forks source link

Homework 5 #5

Open Phuocdao opened 1 year ago

Phuocdao commented 1 year ago

to convert Celsius to Fahrenheit and vice versa

Phuocdao commented 1 year ago

include

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; }