Computer Science, asked by aadi04aries, 1 year ago

how do i print n number of rows of in java
*
**
***
****
*****
when n = 5

Answers

Answered by RiyaWani
0
hey!
here is your answer
kindly note that i is for rows and j is for columns
see the attachment
hope it helps you
have a great day ahead
Attachments:

aadi04aries: i am sorry but i meant that 'n' is a user defined variable
RiyaWani: oh I'm sorry
Similar questions