Write a python program that will print the numbers in a square shape matrix according to user defined number of rows. The numbers start from 1 and end on . For example, if we select number of , then numbers will start from 1 and ends on . Pattern is shown below
Extracted text: Enter number of rows =5 1 2 3 4. 5 16 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9 And sample output will be like Enter number of rows =3 2 3 8 9 4 7 6
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here