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.
Effizienter lernen, kostenlos:
Einführung in Python
7.1M Lernende
Einführung in Java
4.7M Lernende
Einführung in C
1.5M Lernende
Einführung in HTML
7.5M Lernende