Why is
i=(Math.round(i/n))*n;
j=(Math.round(j/n))*n;
not working whereas
i = i-i%3; j=j-j%3;
is working?
Why is
i=(Math.round(i/n))*n;
j=(Math.round(j/n))*n;
not working whereas
i = i-i%3; j=j-j%3;
is working?
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.
Yes, I have already done n=Math.sqrt(n) before.
@Atif-Sufyaan-1976506059127874
Please copy paste your code on CB IDE and send it here
I’ll look into it and try to help you out
Cheers !