KiwiJelly5158 KiwiJelly5158
  • 24-12-2019
  • Computers and Technology
contestada

In a single statement: declare, create and initialize an array named a of ten elements of type int with the values of the elements (starting with the first) set to 10, 20, ..., 100 respectively.

Respuesta :

Debel
Debel Debel
  • 25-12-2019

Answer:

int[] a = {10, 20, 30, 40, 50, 60, 70, 80, 90, 100};

Explanation:

//written in java

The left side int[] a Declare a variable(a) which is of type Integer array(int[]).

The equal sign(=) assign the right side to the left side.

The right side initialize the integer array(a) with ten element.

Answer Link

Otras preguntas

Which of the following is correct? a. My father has just won a trip to australia. b. My Father has just won a trip to australia. c. My father has just won a
What is the Sahel?????????
If the probability of snow tomorrow is 0.375, what is the probability that it will not snow?
What was the important result in the french revolution
Arianne recently traveled abroad where she enjoyed eating food from different countries and learning about different cultures. A week after she returned home, s
which is the best example of positive peer pressure?
(PLEASE ANSWER) Which Jewish carpenter from Galilee spread a message of love and faith in God's heavenly kingdom? A. Caesar Augustus B. Jesus C. Constantine
how did satellite states change the lives of people living in post ww2 Europe
What emperor added land north of Macedonia and east of Syria to the Roman Empire?
Which equation demonstrates the associative property? A. –(33 + 4) = –33 + (–4) B. (–16 + 9) + (–19) = –16 + (9 + (–19)) C. (–5 + 11) + 3 = (11 + (–5)) + 3 D. 2