Write a python program to print the following pattern using conditional looping.
*
**
***
****
*****
❌DO NOT SPAM❌
Answers
Answered by
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
0
Answer:
you can search it on google
Similar questions
English,
2 months ago
Hindi,
5 months ago
India Languages,
5 months ago
Physics,
10 months ago
Chemistry,
10 months ago