Computer Science, asked by Anamikaas04, 5 months ago

Write a python program to print the following pattern using conditional looping.
*
**
***
****
*****

❌DO NOT SPAM❌​

Answers

Answered by anindyaadhikari13
1

Question:-

Write a python program to display the following pattern.

*

* *

* * *

* * * *

* * * * *

Program:-

This is a very simple pattern. This can be done in two ways.

1. Using two loops.

for i in range(5):

for j in range(i):

print("* ", end=" ")

print()

2. Using 1 loop.

for i in range(5):

print("* " * i, end="")

Answered by alltimeindian6
0

Answer:

you can search it on google

Similar questions