Unable to get the desired pattern

mam actually im trying to get the exact specific pattern for n=7,but unable to get the desired pattern

please share your code by saving it on ide.codingblocks.com