Computer Science, asked by queensp73, 8 months ago

Helps Plz.....If anyone knows the answer plz help me !
WAP to generate n lines of the following pattern on the computer screen:
*
* *
* * *
* * * *
* * * * *
* * * *
* * *
* *
*

Answers

Answered by SkywalkerS19
1

Answer:

The program is in the attachment above along with the output.

Explanation:

I am using Java script. I don't know about your language but the logic is still the same. You have to use two different for loops. If you have any doubts, please feel free to ask.

Hope the answer helped you :)

Edit: If the user has to enter the number of lines, simply use the variables n and l used in the program above to accept the values.

Attachments:
Answered by Anonymous
1

Answer:

sis can u please inbox me please

Similar questions