Skip to content

Print a pattern of numbers #30

Open
@bvsslgayathri-8679

Description

@bvsslgayathri-8679

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions