Assume that an array of Integers named a has been declared with 12 elements. The integer variable k holds a value between 0 and 6. Assign 15 to the array element whose index is k.

Assume that an array of Integers named a has been declared with 12 elements.  The integer variable k holds a value between 0 and 6.  Assign 15 to the array element whose index is k.

LANGUAGE: Visual Basic

CHALLENGE:

Assume that an array of Integers named a has been declared with 12 elements.
The integer variable k holds a value between 0 and 6.
Assign 15 to the array element whose index is k.

SOLUTION:


 a(k) = 15

Add comment