0
I did conversion of Celsius into Fahrenheit but it always shows some error or written no output or don't calculate the value
6 ответов
+ 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
+ 1
Thanks Ina~ All the details (Integer division and displaying decimal) about C, now I learn them from Ina too~
0
Show your code
0
can you explain again why should i use %3.2 with example?
0
https://code.sololearn.com/cGq5ypHQr2UF/?ref=app
frustrated from error ??