in this program when i input n as a number <= 10, then i get correct figure but when i input any number > 10, then the right hand side of the figure gets distorted like this -
my logic is correct and my code is also accepted with 100 marks when i submitted it.
i wrote this code -