211k views
2 votes
What is the index of 7 in this list?

[5, 6, 10, 7, 3, 2.5]
2.
0 3
4
7
NEXT QUESTION
READ NEXT SECTION
ASK FOR HELP

1 Answer

2 votes

Answer:

Assuming this is 0 based array indexing, it would look like this...

[ 5, 6, 10, 7, 3, 2.5 ]

[ 0, 1, 2, 3, 4, 5, 6 ]

The index of 7 would be 3.

User Raxi
by
4.8k points