Task 1.
Using nested loops, draw and render into HTML:
12345
12345
12345
The outer loop runs 3 times. The inner loop runs 5 times.
The code must run only on button click.
Task 2.
Using nested loops, draw and render into HTML:
1 (1 2 3)
2 (1 2 3)
3 (1 2 3)
The outer loop runs 3 times. The inner loop runs 3 times.
The code must run only on button click.
Task 3.
Using nested loops, draw and render into HTML:
11111
22222
33333
44444
The outer loop runs 4 times. The inner loop runs 5 times.
The code must run only on button click.
Task 4.
Using nested loops, draw and render into HTML:
AAAAA
BBBBB
AAAAA
BBBBB
The outer loop runs 4 times. The inner loop runs 5 times.
The code must run only on button click.
Task 5.
Using nested loops, draw and render into HTML:
54321
54321
54321
The outer loop runs 3 times. The inner loop goes from 5 down to 1.
The code must run only on button click.
Task 6.
Using nested loops, draw and render into HTML:
1*****
2*****
3*****
4*****
5*****
The outer loop runs 5 times. The inner loop runs 5 times.
The code must run only on button click.
Task 7.
Using nested loops, draw and render into HTML:
2468
2468
2468
2468
The outer loop runs 4 times.
The code must run only on button click.