0

What's wrong with the below code? Written in C

This is the question that asked in the code coach "New driver's license" https://code.sololearn.com/chR68IlS2RK8/?ref=app

28th Jan 2020, 4:17 PM
Nagaraj P
Nagaraj P - avatar
6 odpowiedzi
+ 2
change count from int to float. int i, j,n = 0,times; float count; because when you do (count /n) it has to return float not int for ceil() to give you the correct value.
28th Jan 2020, 5:33 PM
Bahhaⵣ
Bahhaⵣ - avatar
+ 3
It doesn't seem to sort your last value, and that is the client. Try it with this in line 23: for (j = i + 1; j <= 4; j++)
28th Jan 2020, 4:49 PM
Paul
Paul - avatar
+ 2
Thanks bahha🐧 it cleared the error and made a 100xp
28th Jan 2020, 5:58 PM
Nagaraj P
Nagaraj P - avatar
+ 1
Paul Jacobs 2/5 test cases fails Jacobs , but I tried with different test cases but it passes on it but code coach says error....
28th Jan 2020, 5:24 PM
Nagaraj P
Nagaraj P - avatar
+ 1
Nagaraj P use the same code for c++ 😄
28th Jan 2020, 5:59 PM
Bahhaⵣ
Bahhaⵣ - avatar
+ 1
bahha🐧 why not ?😉😅
28th Jan 2020, 6:00 PM
Nagaraj P
Nagaraj P - avatar