63
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:
Next TopicJava Programs