Coding-ninjas
Coding-ninjas copied to clipboard
Arrange Numbers In Array
For the below input : 1 11
orginal output required is : 1 3 5 7 9 11 10 8 6 4 2
But with your code , the output is incorrect !!! Your Output 1 3 5 7 9 0 10 8 6 4 2
NB : IF N IS EVEN NUMBER , the program o/p is correct. FOR ODD NUMBER, the output is incorrect.