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



