Pattern problem

I’m not able to do other half of the pattern. Here’s my code - https://ide.codingblocks.com/s/332445

Please help me out further.

hello @gambhirrahul0
just add these statements
image

check this ->