I can't figure it out please help it's my first time | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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
1 Answer
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