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

Pls, help due in 15. I will make brainliest.
What happened to the Czar and his family during the Russian Revolution?
The diameter of a cylindrical water tank is Do and its height is H. The tank is filled with water, which is open to the atmosphere. An orifice of diameter D wit
What will happen? (Newton's 1st Law Egg Drop)
Which graph represents f(x) = log2 x – 1
What are 3 causes of Bantu expansion ?
A thin block of soft wood with a mass of 0.0780 kg rests on a horizontal frictionless surface. A bullet with a mass of 4.67 g is fired with a speed of 582 m/s a
What is the meaning of the phrase fancy clear as it is used in line 3 of the poem
In which quadrant is the coordinate pair (-11, 1) located?
can you answer it?????​