write a program to print the following pattern
RUKT 1 - 1 2 3 4 5
RGUKTE - 1 2 3 4 5
RGUKT 3-12 3 4 5
RGUKT 4 - 1 2 3 4 5
RGUKT 5-12 3 4 5
Answers
Answered by
1
Explanation:
STEP 2: SET lines=5
SET i=1
Step 3: REPEAT STEP 4 TO 8 UNTIL i is less than or equals to lines
STEP 4: SET j=lines
STEP 5: REPEAT STEP 6 and 7 UNTIL j is greater than 0
STEP 6: IF j!=i
PRINT j
ELSE
PRINT *
STEP 7: j=j-1
STEP 8: i=i+1
Similar questions