0

I can't figure it out please help it's my first time

#include <stdio.h> #include <conio.h> int main (void) { float celcius; float fahrenheit; printf("Input a temperature in degree Celcius"); scanf("%f", &celcius); fahrenheit = float (9)/5 * celcius + 32; printf("%4.2f degrees Celcius is equal to %4.2f\n", celcius, fahrenheit); getch(); return 0; }

17th Sep 2021, 3:45 AM
Hanz Rosales
Hanz Rosales - avatar
2 Réponses
0
Try this #include <stdio.h> int main (void) { float celcius; float fahrenheit; printf("Input a temperature in degree Celcius"); scanf("%f", &celcius); fahrenheit =((9)/5 * celcius + 32); printf("%4.2f degrees Celcius is equal to %4.2f\n", celcius, fahrenheit); return 0; }
17th Sep 2021, 4:20 AM
Pariket Thakur
Pariket Thakur - avatar