Hackerrank-Problem-Solving-Python-Solutions icon indicating copy to clipboard operation
Hackerrank-Problem-Solving-Python-Solutions copied to clipboard

Print a pattern of numbers

Open bvsslgayathri-8679 opened this issue 3 years ago • 0 comments

I want to solve the following problem , please assign me Hackerrank problem Print a pattern of numbers from to as shown below. Each of the numbers is separated by a single space.

                        4 4 4 4 4 4 4  
                        4 3 3 3 3 3 4   
                        4 3 2 2 2 3 4   
                        4 3 2 1 2 3 4   
                        4 3 2 2 2 3 4   
                        4 3 3 3 3 3 4   
                        4 4 4 4 4 4 4   

Input Format: The input will contain a single integer .

Sample Input 0: 2

Sample Output 0: 2 2 2 2 1 2 2 2 2

bvsslgayathri-8679 avatar Oct 01 '21 10:10 bvsslgayathri-8679