Error in the program
hello @sraj39273
a) u need to print space in betweem but u r printinng in the end
b) the number of spaces is not correct , it should be 2n-2i-1
c) handel the last row seprately
d) u are doing val-=2 ,but it should be val-1
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.