subject

Write code that fills an array values with each set of number belowR7.1a) 1 2 3 4 5 6 7 8 9 10for (int i = 0; i < 10; i++){ values[i] = i + 1;}b) 0 2 4 6 8 10 12 14 16 18 20for (int i = 0; i <= 10; i++){ values[i] = i * 2;}c) 1 4 9 16 25 36 49 64 81 100for (int i = 0; i < 10; i++){ values[i] = (i + 1) * (i + 1);}d) 0 0 0 0 0 0 0 0 0 0for (int i = 0; i < 10; i++){ values[i] = 0;}e) 1 4 9 16 9 7 4 9 11int[] values = {1, 4, 9, 16, 9, 7, 4, 9, 11};f) 0 1 0 1 0 1 0 1 0 1for (int i = 0; i < 10; i++){ values[i] = i % 2;}g) 0 1 2 3 4 0 1 2 3 4for (int i = 0; i < 10; i++){ values[i] = i % 5;}}

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 18:00
What ordering of tcp flags makes up the three-way handshake?
Answers: 2
question
Computers and Technology, 22.06.2019 04:00
When you collaborate or meet with a person or group online, it is called
Answers: 1
question
Computers and Technology, 23.06.2019 02:00
For a typical middle-income family, what is the estimated cost of raising a child to the age of 18? $145,500 $245,340 $304,340 $455,500
Answers: 1
question
Computers and Technology, 23.06.2019 11:50
While preforming before operation pmcs, you notice the front right tire appears slightly under-inflated. what is the proper action?
Answers: 3
You know the right answer?
Write code that fills an array values with each set of number belowR7.1a) 1 2 3 4 5 6 7 8 9 10for (i...
Questions
question
Mathematics, 21.07.2021 16:00
question
Mathematics, 21.07.2021 16:10
question
Mathematics, 21.07.2021 16:10