Pattern number pyramid

why doesn’t it work for no grater than 5

hello @harshita.rathee you have doubt in print pattern question right ?
in that case there must be constraints upto 5 .
.

why is that ??
is it because it exceeds the range ?

hello @harshita.rathee please share your code .

yes it could be the reason .

the problem was with the number of spaces you were printing .


i have made correction and now it is printing the correct result .
Happy Learning !!

thank you…

:+1:
@harshita.rathee happy to help you
Happy Learning !!

1 Like

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.