Pattern printing

i am not able to identify in my code why i am getting 1 extra stars in first and last rows

@Sumant123,
https://ide.codingblocks.com/s/239284 corrected code. Just remove the ‘=’ sign in for loop for 2 loops.