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

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 7 9) b. The second 10 repetition displays even values (12 14 16 18 20) c. And so on until we get to 100 repetitions. d. Each multiple displays the number of numbers displayed. e. Example output: 10 Repetition 1st : 1 3 5 7 9 -------------------------- Total sum : 25 10 repetitions 2nd: 12 14 16 18 20 -------------------------- Total sum : 80 10 repetitions 3rd : 21 23 … … etc

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 7 9)
b. The second 10 repetition displays even values (12 14 16 18 20)
c. And so on until we get to 100 repetitions.
d. Each multiple displays the number of numbers displayed.
e. Example output:
10 Repetition 1st :
1
3
5
7
9
————————–
Total sum : 25

10 repetitions 2nd:
12
14

16
18
20
————————–
Total sum : 80
10 repetitions 3rd :
21
23
… … etc


 
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: (3 ratings) 3 out of 3 people found this solution helpful.