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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 02:30, rodfam13716
If you turn on the lock alpha button , what happens
Answers: 1
image
Computers and Technology, 22.06.2019 08:00, luclaymom805
Aplan to budget time for studying and activities is referred to as a study routine. study habits. study skills. a study schedule.
Answers: 1
image
Computers and Technology, 22.06.2019 15:30, alexdub9649
What is a costume plot? why is it important to a film or theater production?
Answers: 2
image
Computers and Technology, 23.06.2019 17:00, quanharris2k19
The camera still is bad even with the new iphone xr and especially in low light it is even worst because you can see the pixels more if its in low light. if all you apple customers want apple to fix this then lets fill there feedback with complaints about the
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 in other subjects:

Konu
Spanish, 20.09.2019 03:30
Konu
Mathematics, 20.09.2019 03:30