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
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.
+ 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++)
+ 2
Thanks bahha🐧 it cleared the error and made a 100xp
+ 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....
+ 1
Nagaraj P use the same code for c++ 😄
+ 1
bahha🐧 why not ?😉😅