Problem in last line

can you tell how to resolve it?

hello @akash_281
yeah it create problem in last line.

to resolve it
run ur loop for n-1 times only and print last row separately