96
Program to print the following pattern
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
Next TopicProgram to Print pattern 11