1 Create a TypeScript program that repeats the values 1 to 100 with the following loop

1. Create a TypeScript program that repeats the values 1 to 100, with the following loop operation: a. The first 10 loops display odd values (1, 3, 5, ..., 19). b. The second 10 repetitions display even values (2, 4, 6, ..., 20). c. And so on until we get to 100 repetitions. d. Each multiple of 10 displays the number of numbers displayed. e. Example output: Quantity: 25 2nd 10 repetitions: 12 14 16 18 20 Quantity: 80 3rd 10 repetitions: 21 23 ... 2nd 10 repetitions: 12, 14, 16, 18, 20 | Quantity: 80 3rd 10 repetitions: 21, 23, ...

1. Create a TypeScript program that repeats the values 1 to 100, with the following loop operation:
a. The first 10 loops display odd values (1, 3, 5, …, 19).
b. The second 10 repetitions display even values (2, 4, 6, …, 20).
c. And so on until we get to 100 repetitions.
d. Each multiple of 10 displays the number of numbers displayed.
e. Example output:
Quantity: 25
2nd 10 repetitions:
12
14
16
18
20
Quantity: 80
3rd 10 repetitions:
21
23

2nd 10 repetitions: 12, 14, 16, 18, 20 | Quantity: 80
3rd 10 repetitions: 21, 23, …


 
Solved By Verified
Study Co-Pilot All Study Co-Pilots are evaluated by Gotit Pro as an expert in their subject area.

 
Instant
Download

Student review: (6 ratings) 6 out of 6 people found this solution helpful.