Question: How do I finish the following code segments (fill in the blanks) to create the listed output? Enter the code, with the blanks filled in
How do I finish the following code segments (fill in the blanks) to create the listed output?
Enter the code, with the blanks filled in to answer this question. (Only fill in the blanks: do not add extra lines of code)
Code:
for(j = 1; j< 10; j++ ) { for (var i=0; i ____ j; i++ ){ if (i ____ 4 == 0) { continue; } document.write(" " + ____); }
document.write(______);
}
Desired output:
1 1 2 1 2 3 1 2 3 1 2 3 5 1 2 3 5 6 1 2 3 5 6 7 1 2 3 5 6 7 1 2 3 5 6 7 9
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
