Question 10 || Hacker Rank
Printing Pattern Using Loops || Hacker Rank
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
Organization
The
information will contain a solitary whole number .
Test
Information 0
2
Test
Result 0
2 2 2
2 1 2
2 2 2
Test
Information 1
5
Test
Result 1
5 5 5 5 5 5
5 5 5
5 4 4 4 4 4
4 4 5
5 4 3 3 3 3
3 4 5
5 4 3 2 2 2
3 4 5
5 4 3 2 1 2
3 4 5
5 4 3 2 2 2
3 4 5
5 4 3 3 3 3
3 4 5
5 4 4 4 4 4
4 4 5
5 5 5 5 5 5
5 5 5
Test
Information 2
7
Test
Result 2
7 7 7 7 7 7
7 7 7 7 7 7 7
7 6 6 6 6 6
6 6 6 6 6 6 7
7 6 5 5 5 5
5 5 5 5 5 6 7
7 6 5 4 4 4
4 4 4 4 5 6 7
7 6 5 4 3 3
3 3 3 4 5 6 7
7 6 5 4 3 2
2 2 3 4 5 6 7
7 6 5 4 3 2
1 2 3 4 5 6 7
7 6 5 4 3 2
2 2 3 4 5 6 7
7 6 5 4 3 3
3 3 3 4 5 6 7
7 6 5 4 4 4
4 4 4 4 5 6 7
7 6 5 5 5 5
5 5 5 5 5 6 7
7 6 6 6 6 6
6 6 6 6 6 6 7
7 7 7 7 7 7
7 7 7 7 7 7 7
0 Comments