am able to doo it only for first part will u plzz code it for another
Https://ide.codingblocks.com/s/237248
hello @Aditya-Kushwaha-914550392281281
check this
a) total 2*n-1 colums will be there in each row.
-
if i<=j then print val and val++;
-
else if i <=2*n-1-i then print " "
-
otherwise val-- and print val;
b) dont apply above logic for last row , handle it separately
will u again share a code your mistakely send my code to me
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.