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: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:50
Can online classes such as gradpoint track your ip location like if im taking a final and i give somebody else my account and they take the final for me will it show where they are taking the final from? and can this be countered with a vpn
Answers: 1
question
Computers and Technology, 22.06.2019 18:00
Budgets you to do all of the following expect a) send frivolously b) avoid over spending c) gain financial independence d) examine your priorities and goals
Answers: 2
question
Computers and Technology, 23.06.2019 07:30
What is the original authority for copyright laws
Answers: 1
question
Computers and Technology, 24.06.2019 21:00
Which device has the most limited computing functionality?
Answers: 1
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
Social Studies, 02.10.2020 09:01
question
English, 02.10.2020 09:01
Questions on the website: 13722363