Java Program
Write the statement to search the element 5 of the given array int num[5]={6, 5, 7, 4, 3};
Suppose the first element starts in 27th index, provide the index of the given element and vice versa of the following: int array1[15] = {5, 9, 0, 34, -12, 14, 25, 27, 7, 17};
a.Element 25 is index. b.Index 30 has element. c.Element 17 is index. d.Index 37 has element. e.Index 38 has element.
Write a java statement that multiplies the contents of the first element in the salesarray by .15 and then stores the result in the bonus variable. The sales array andbonus variable have the double data type.
Answers
Answered by
0
Answer:
Learn about index, length and how to iterate over array. ... So, the first element of the array has index 0, the second element has index 1 and so on. Index of an array ... index, 0, 1, 2, 3, 4, 5 ...
Similar questions