Write a script that outputs XHTML todisplay the given patterns separately,one be
ID: 3609678 • Letter: W
Question
Write a script that outputs XHTML todisplay the given patterns separately,one below the other. Usefor statements to generate thepatterns. All asterisks (*) should be printed by a single statementof the form document.write( "*"); (this causes the asterisks to printside by side). A statement of the form document.writeln("<br />") ; can be usedto position to the next line. A statement of the form document.write(" ") ; can be used to display aspace (needed for the last two patterns). There should be no otheroutputs statements in the program. [Hint: the last twopatterns require that each line begin with an appropriate number ofblanks. You may need to use the XHTML <pre></pre>tags.] (a)*
**
***
****
*****
******
*******
********
*********
**********
(b)
***********
**********
*********
********
*******
******
*****
****
***
**
* (c)
**********
*********
********
*******
******
*****
****
***
**
*
(d)
*
**
***
****
*****
******
*******
********
*********
**********
Write a script that outputs XHTML todisplay the given patterns separately,one below the other. Usefor statements to generate thepatterns. All asterisks (*) should be printed by a single statementof the form document.write( "*"); (this causes the asterisks to printside by side). A statement of the form document.writeln("<br />") ; can be usedto position to the next line. A statement of the form document.write(" ") ; can be used to display aspace (needed for the last two patterns). There should be no otheroutputs statements in the program. [Hint: the last twopatterns require that each line begin with an appropriate number ofblanks. You may need to use the XHTML <pre></pre>tags.] (a)
*
**
***
****
*****
******
*******
********
*********
**********
(b)
***********
**********
*********
********
*******
******
*****
****
***
**
* (c)
**********
*********
********
*******
******
*****
****
***
**
*
(d)
*
**
***
****
*****
******
*******
********
*********
**********
Explanation / Answer
(b):
I hope this will helpful foryou.............
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.