It prints the required output but it does not pass any test case.
What is missing in it?
Here is my code: https://ide.codingblocks.com/s/340799
It prints the required output but it does not pass any test case.
What is missing in it?
Here is my code: https://ide.codingblocks.com/s/340799
Hey @princeky4
You are printing extra space in start of each line so do this instead
if(j==1)cout<<j;
else
cout<<" "<<j;