Print a pattern without using any loop
Given a number n, print the following pattern without using any loop.n, n-5, n-10, ..., 0, 5, 10, ..., n+5, nExamples : Input: n = 16Output: 16, 11, 6, 1, -4, 1, 6, 11, 16Input: n = 10Output: 10, 5, 0, 5, 10We strongly recommend that you click here and practice it, before moving on to the solution.P