How to fix the no of zeroes at the midldle line.....I am getting two zeroes instead of one if n=5

image