Manmohan loves pattern-11 one test case failed

i do not know why one test case failed please guide me
here is my code…

thanks in advance

Hi @Diwyanshu
See when the input is 1 then output should be 1 but your code is printing
1
1 1
which is why getting wrong answer. To correct it just put a check like this :

if(n>1)
cout<<1<<1<<endl;

i cant understand can you correct my code please…
i tried but test case failed @Aayush