Helps Plz.....If anyone knows the answer plz help me ! WAP to generate n lines of the following pattern on the computer screen: * * * * * * * * * * * * * * * * * * * * * * * * *
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.
Answers & Comments
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.