desire output
1
11
111
1001
11111
100001
this is output for n=6
Error in the output
Modified Code
if you are using endl outside if else ladder then no need to put one extra endl inside if condition
also you can ask doubt just below the question
if you do so then you need not to give question details
we can access your question and submitted code as well
so always post doubt on the question which you are asking
in this case you are asking doubt on “pattern-pseudocode”
you can see this topic just below your doubt title
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.