To accomplish this task, we need to create two loops and the 2nd loop is to be executed according to the first loop. The first loop is responsible for printing the line breaks whereas the second loop is responsible for printing the stars (*).
Algorithm
- Start
- Let i be an integer number.
- Let j be an integer number.
- Repeat step 5 to 7 until all value parse.
- Set i = 0 and check i<6;
- Set j = 1 and check j <= i;
- Print "*".
- End
JAVA
Python
C program
C# program
PHP program
need an explanation for this answer? contact us directly to get an explanation for this answer