This is my code for pascal’s triangle but it is not able to pass all the test cases on hackerblocks.
Print Pascal's Triangle
hi @tanyaa.sood the number of spaces being printed in the starting seem incorrect. Please share the link of the question for reference.
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.