+ 4
How to print "* ** *** ** *" in line by line?
first * and than second line ** than third line *** after that decrease tha star ** and last one * ...
6 Réponses
+ 18
can be done by joining 2 pattens also ... first make upper triangle & then lower triangle , then place lower triangle below
//thats the basic way/logic to make these patterns
+ 10
for i in range(1, 6):
print(i * "*" if i < 3 else (6 - i) * "*")
+ 5
So, you basically want this pattern?
*
**
***
**
*
In what language?
0
PHP , C ,C++ whatever... I need some logic only
0
*
- 1
print("*\n**\n***\n**\n*")