What is the error with my code. please explain

hello @Anku47
in ur code u have not written outer for loop , which will iterate through each row.

also there is some logical issue as well.
pls rewatch the video and try to implement again from scratch.

what is the logical error in my prg. please explain

image
this section is not correct.

number of space in each row will be diffrent but u r always printing n spaces in each row