Home » Program to Print Pattern 10

Program to Print Pattern 10

by Online Tutorials Library

Program to print the following pattern

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

  1. Start
  2. Let i be an integer number.
  3. Let j be an integer number.
  4. Repeat step 5 to 7 until all value parse.
  5. Set i = 0 and check i<6;
  6. Set j = 1 and check j <= i;
  7. Print “*”.
  8. End

JAVA

Python

C program

C# program

PHP program

You may also like