Ensure that you are logged in and have the required permissions to access the test.
A server error has occurred. Please refresh the page or try after some time.
An error has occurred. Please refresh the page or try after some time.
4.5
Given N, the number of rows of a right-hand pyramid. Your task is to print the pyramid.
For N<0, print -1.
Example Input
N=5
Example Output
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
Example Input 2
3
Example Output 2
A password reset link will be sent to the following email id
?