Problem Statement
Write a program that reads an integer N and prints an N x N square of numbers.
Each row should contain the numbers from 1 to N, separated by spaces. All rows should be identical.
Requirements
- Use nested loops to generate the output.
- Each row must end with a newline character.
- Numbers within a row must be separated by a single space.
- You must not contain space at the end of each line