Test case 2 is not passed. Please look at the code below:
link is here:
Manmohan Loves Patterns- II
@prkfoxxx you have added spaced in between number, the answer does not expect spaces to be present that’s why the wrong solution. Just remove the spaces after printing the numbers and your code will work fine.
Hope this helps.
STILL I AM NOT GETTING CORRECT ANSWER IN TEST CASE 2 AFTER REMOVING SPACES.
Here, try this code.