Computer Science, asked by fireworld1, 4 months ago

Practical program

Heading : Pattern printing
Aim: Write a program to print the following pattern
*
* *
* * *
* * * *​

Answers

Answered by jai696
4

\large\mathsf\color{pink}{Solution\: using\: python\: 3}

def pyramid_create(n):

for i in range(0, n):

for j in range(0, i + 1):

print("* ", end = "")

print("\r")

pyramid_create(4)

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions