Question: please Use javascript and hml , i am currently using Notepad + + . Provide a documented textbox for the user to enter a size
please Use javascript and hml i am currently using Notepad Provide a documented textbox for the user to enter a size indicating the number of asterisks to use on a side for the four ASCIIart right triangles.
Use a pair of nested for loops to generate the following ASCIIart right triangles:
Use an if else statement to determine whether to print an asterisk or a space based on the values of the loop indices.
Shown using a value of asterisks per side
Also, display the total number of asterisks used to form each shape.
Repeat the above process making the triangles hollow instead.
Shown using a value of asterisks per side
And, display the total number of asterisks used to form each shape.
Ensure that in your code identifiers eg variable and function names are labeled appropriately.
Hint: remember that a blank is itself a character which occupies a character's worth of space.
Thank you
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
