Pattern Question number 11

please send me the answer for this

Sorry, can’t send you the exact code but definitely give you a hint.

First of all, let’s print out the spaces before asterisks. Observe that the no. of spaces in line number i(indexed from 0) is n - i - 1. So firstly, print out this much no of spaces, then for each line number iterating from i = 0 to n - 1, print out i + 1 no. of asterisks. Give a linefeed. That’s how you need to solve this question.

solution of pattern 11