You can use 2 for loops, one if and one else. You have to take input from user and print it in star pattern. Use python language.
Apprenez de manière plus efficace, gratuitement :
Introduction à Python
7.1M apprenants
Introduction à Java
4.7M apprenants
Introduction à C
1.5M apprenants
Introduction à HTML
7.5M apprenants