+ 3
How can I mention that there is a fault in a cours in solo?
6 Réponses
+ 4
Report it to Sololearn via the in-app feature or send an email at
info@sololearn.com
+ 4
can you explain where is the fault
+ 3
You have used wrong format specifier which results in wrong output.
Change %d to %f and it will be Ok.
+ 3
ABADA S first, logically 23.678901*4 =! 1958230209 in theout put.
And 23.678901 is not an integer so we need to put %f to display the result of 4*23.678901 instead of %d
+ 3
AnonymousGuy yes I know , that's technically true but my goal is to have right unswer for the multiplication why I would print a false result ? . I'm sure this will confuse lot of people especially beginners like me, that's why we must change it to %f in the course
+ 1
Hadjer😁
Yes, you are right..23.678901 is not an integer but it is not like that you cannot print it using %d..you can use any format specifier..(obviously output will depend upon format specifier)