Javatpoint Logo
Javatpoint Logo

Java program to print the following pattern on the console

Java program to print the following pattern on the console

Algorithm:

  • STEP 1: START
  • STEP 2: DEFINE i, j
  • STEP 3: SET n=6
  • STEP 4: SET i=n. REPEAT STEP 5 to STEP 7 UNTIL i>0.
  • STEP 5: SET j=0. REPEAT STEP 6 UNTIL j
  • STEP 6: PRINT * and SET j=j+1
  • STEP 7: PRINT "" and SET i=i-1.
  • STEP 8: END

Program:

Output:

Java program to print the following pattern on the console
Next TopicJava Programs





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA