Write a program to print the following pattern in a 2x4 grid format:
13 26 5 4
10 9 8 7
Step 1: 1st I write a basic program for * * * * * * This pattern
Step 2: then I replace * with the number
Step 3: then I took one var which will store n serially
Step 4: then I design this 1st 1 2 3 4 5 6 7 8 9 10
Step 5: then simply wrote logic to make this column reverse and got the expected output.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?