Wrong code is Given

The code is wrong in this we need to write if ( i % 3 == 0 ) rather than if ( n % 3 == 0).

same for if ( i % 2 == 0 ) rather than if ( n % 2 == 0).

yes @mohit26900
it will be i%2 and i%3… typing error in lecture…

no but they also showing running code with code with right answer so is it a scam

hi @mohit26900
its just that with that sample input code worked… but it wont work with all test cases…

is there anything else??

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.