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

A __________ can cause a driver to take risky chances or make bad choices? A. poor driving attitude B. traffic jam C. low posted speed limit
5x - 3(2x-4) is equivalent to 12 - x
Who was a colonial-era minister known for religious tolerance?
When an impulse reaches the end of a neuron, it triggers the release of
write this number in expanded form using fractions and decimals 0.362
What does the words archeology, artifact, carbon dating have in common? Please help.....its for tomorrow pleasee
Explain why the exponents cannot be added in the product 12^3 x 11^3
students of different ages were given the same puzzle to assemble. the puzzle assembly time was measured wat is the independent variable ,dependent variable and
whole number less than 5
Which is NOT a characteristic of both Italian sonnets and Shakespearean sonnets?A.14 linesB.three quatrainsC.iambic pentameterD.strict rhyme scheme