Skip to content

Print a pattern of numbers #30

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
bvsslgayathri-8679 opened this issue Oct 1, 2021 · 0 comments
Open

Print a pattern of numbers #30

bvsslgayathri-8679 opened this issue Oct 1, 2021 · 0 comments

Comments

@bvsslgayathri-8679
Copy link

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant