PLZ help me to correct my code

My code URL is:-https://ide.codingblocks.com/s/572662

PLZ correct it there is little bit mistake which i am unable to correct.

your mistakes:

  1. at line no. 14 and 15 : you make it specific for n=5.

  2. and for n=5 (specifically)
    " at line no. 18 when you are printing " * " then j form 0 to 5 that’s why it
    prints stars 5 times at 2nd and 4th line "

your approach is not correct to solve these

Correct Approach

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.