PLZ help me to correct my code

My code URL is:-

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