Differnt output

sir my output for pattern questions is coming different although i am writing same code as shown in the video

please save your code on ide.codingblocks.com and share the link here