Print Pascal's Triangle


This is my code for pascal’s triangle but it is not able to pass all the test cases on hackerblocks.

hi @tanyaa.sood the number of spaces being printed in the starting seem incorrect. Please share the link of the question for reference.

https://hack.codingblocks.com/app/practice/1/285/problem This is he link for the problem

hi @tanyaa.sood for n = 4 in the first line in the starting you need to print 6 spaces, then 4, then 2 and then 0. But you are printing 3, 2, 1, 0 instead.
The number of spaces between each number should be 3, but you have printed only 2 spaces.

@tanyaa.sood you can overcome this issue by printing two spaces in line 28.