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 ————————– T
Tag: Create a TypeScript program that repeats the values 1 to 100 with the following loop operation
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: 2