+ 1
Why my solution is not accepted and a wrong answer?Expert evaluation required
https://code.sololearn.com/c5S2H5HoZ3tJ This is somewhat wrong according to some online judge
6 Answers
+ 1
Maybe the test does not accept the warning about the unused variable, j. Remove the declaration in line 4 of j=0.
+ 1
Brian , thanks for the clarification, but I mean that this is probably superfluous in solving this task, like "j=0" đ
0
What is it đł
printf("\b");
}
printf("\n");
0
Brian but this shows wrong answer for some reason..idk.i looked up some solutions but they too give same answers starting from n=0..i guess i am right and found the solution.thats all i need to know!???
Even if right answer,there is still presentation error for extra space.đ„č
0
ANIK here is a simple fix to eliminate the trailing space:
Line 11 delete trailing space
Line 15 move the space to be in front of %d
Comment out line 21
And don't forget line 4, delete j=0.