Can you please check my code its not printing op
Hi @pmschhabra, at line 4, instead of for(int i=2;i<=n;i++){ it should be for(int i=2;i<=n-1;i++){
as when i=n the n%n is 0 and it will always return false and you will not get any output
In case of any doubt feel free to ask
If you got the answer then mark your doubt as resolved
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.