Javatpoint Logo
Javatpoint Logo

Program to print the following pattern

1 2 3 4 5
1 2 3 4
1 2 3
1 2
1

Algorithm

  1. Start
  2. Let i be an integer number.
  3. Let j be an integer number.
  4. Let n be a integer number and initialize by 6.
  5. Repeat step 6 to 8 until all value parsed.
  6. Set i = n and check i>0;
  7. Set j = 1 and check j <= i;
  8. Print j values.
  9. End

JAVA

Python

C Program

C# program

PHP program






Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA