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

Why is it important to evaluate and selecte literature for children?
The maximum number of eletrons that can occupy a 3p sublevel is
Find the distance between these two points (-1,0), (8,6)
What conclusion does the image support
Question 1(Multiple Choice Worth 2 points) Use the given graph to determine the limit, if it exists. A coordinate graph is shown with a downward sloped line cr
Science and technology are interdependent. Advances in one lead to advances in the other.Give an example of this phenomenon.
Has an insurance claim ever been filed on this vehicle
What is the modifier in this sentence. Everyone almost finished the race
In which layer of the atmosphere do humans live and experience climate?
What number must you add to the polynomial below to complete the square? x^2-6x?