0

I did conversion of Celsius into Fahrenheit but it always shows some error or written no output or don't calculate the value

1st Oct 2018, 2:10 PM
Lata Mishra
Lata Mishra - avatar
6 Réponses
+ 2
line 9 scanf("%f, &celcius"); here you put the variable within quotation should be scanf("%f", &celcius); quote only the %f line 8 should be backslash n \n not /n printf ("enter the temprature in celcius :\n"); result, should be %3.2f for 2-digit float printf ("%3.2f celcius = %3.2f farhenhite", celcius, farhenhiet ); % means to be replaced 3 is 0. to 999. . is the decimal pt 2 is 0.00 to 0.99 f is float here is how it should be, for your checking: https://code.sololearn.com/cYgQ6Lu8g7xD/?ref=app
1st Oct 2018, 2:32 PM
Gordon
Gordon - avatar
+ 1
Thanks Ina~ All the details (Integer division and displaying decimal) about C, now I learn them from Ina too~
2nd Oct 2018, 10:17 AM
Gordon
Gordon - avatar
0
Show your code
1st Oct 2018, 2:19 PM
Gordon
Gordon - avatar
1st Oct 2018, 2:19 PM
Lata Mishra
Lata Mishra - avatar
0
can you explain again why should i use %3.2 with example?
1st Oct 2018, 3:19 PM
Lata Mishra
Lata Mishra - avatar
4th Oct 2018, 1:05 AM
Lata Mishra
Lata Mishra - avatar