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

BRAINLIESTTTTT ASAP!
Jonah’s restaurant bill comes to$25.65, and he leaves a 15% tip.What is Jonah’s total restaurant bill? Your answer (49 points)
Read the excerpt below and answer the question that follows. BRUTUS: for Antony is but a limb of Caesar This excerpt is an example of which literary device?
Find f(x) and g(x) so that the function can be described as y = f(g(x)). y = eight divided by x squared + 2
which of the following activities will best help you develop youra ability to advocate for healthy activities
What type of reaction is 2Na+2H2O?2NaOH+H2+heat
The rate of change of atmospheric pressure p with respect to altitude h is proportional to p, provided that the temperature is constant. at a specific temperatu
what is one way nature preserves help help conserve natural resources? A. they prevent scientists from observing ecosystem. B. they reduce our use of limited re
find the area of a triangle with sides 8 equals 5 b equals 8 and C equals 11
during diffusion when the concentration of molecules on both sides of a membrane is the same the molecules will do what