Javatpoint Logo
Javatpoint Logo

Program to show a triangle of numbers pattern

Program to show a triangle of numbers pattern

Algorithm

  1. Start
  2. Let i be an integer number.
  3. Let j be an integer number.
  4. Let size be an integer number and initialize by 6.
  5. Repeat step 8 to 16 until all value parsed.
  6. Set i = 0 and check I <= size+1;
  7. Set j = size and check j > 1;
  8. Print space.
  9. Set k = 1 and check k < 2*i-1;
  10. Print "*".
  11. End

JAVA program

Python

C program

C# program

PHP program






Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA