![](https://sp-ao.shortpixel.ai/client/to_webp,q_glossy,ret_img,w_1280,h_720/https://codewindow.in/wp-content/uploads/2020/12/Slide2.jpg)
He leaves a hint for you.
![](https://sp-ao.shortpixel.ai/client/to_webp,q_glossy,ret_img,w_1280,h_720/https://codewindow.in/wp-content/uploads/2020/12/Slide1.jpg)
He needs the following output for the inputs 2, 3, 4, 5,….. respectively.
Input: 2
Output:
2 2 2
2 1 2
2 2 2
Input: 3
Output:
3 3 3 3 3
3 2 2 2 3
3 2 1 2 3
3 2 2 2 3
3 3 3 3 3
Input: 4
Output:
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: 5
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
You as a coder can contribute code in any of the following programming languages C, C++, JAVA, Python.
C
C++
JAVA
Python
C
Waiting for your code.
C++
Waiting for your code.
JAVA
Waiting for your code.
Python
Waiting for your code.