0
Can you explain the pattern related questions on java
Java Pattern related questions
4 Answers
+ 1
You would create a for loop that handles one line in each cycle.
Inside that you would have two more loops, the first one prints blank spaces, and the other prints stars (one character at a time) .
Try to figure out how to define the loops, so that the correct number of symbols is printed. Count how many spaces and stars in each line, and try to come up with a formula based on the row number.
0
Please describe what is the question exactly.
0
********
*****
***
*
Print pattern using the for loop and display output
0
thnx sir