Triangle printing


please review this code.can i make it even more efficient?

@dbhavanishankar89
Your spacing seems a little off. Try adding another space in the output in Line No. 12.
As for the approach , your approach is just fine as this problem cannot be done in any better time complexity. This is already as efficient as it could be so well done :+1: .