Unable to built logic for pattern 20 and in pattern 22 i am taking nst=n but it is priinting one extra star iin first row

Hi @Rohan-Duggal-1255727097955490

Just a small error in your code i have updated your code and commented out the error Hope it will help you please let me know if you still have any issue.