why doesn’t it work for no grater than 5
Pattern number pyramid
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 ?
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…
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.