What will be the output of the following code:
n = 5
for i in range(1, n+1):
for j in range(i):
print("*", end="")
print()
Options:
a.*
**
***
****
*****
b.*****
****
***
**
*
c.* * * * *
* * * *
* * *
* *
*
d.None of the above
Answer:
Answer by student
a.*
**
***
****
*****
Detailed answer by teachoo
The rest of the post is locked. Join Teachoo Black to see the full post.