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

How could these same commands be used on a computer or network operating system?
Jeremiah's dog eats 5/8 of a can of food each day. Jeremiah currently has 2 1/2 cans of dog food. How many days will the current supply of dog food last? Write
Why did the Trans-Atlantic Slave trade exist for 300+ years? (2 paragraphs Claim/Evidence/Commentary)
Turn 2 x 10° to standard form
Read these lines from the text and answer the questions. "I have questions that I cannot find answers to on my own." a. Who said this to whom? b. Why can't he f
2x2 forma exponencial
Find the slope of the line passing through the points (2, 2) and (2,-4).
There are two unitless vectors: F1 = 8.92 i + 17.37 j F2 = 8.31 i - 10.97 j A third vector is added to them such that they add up to to the null vector: F1 + F2
HELP PARAGRAPH NEED PLEASE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! In at least one hundred and fifty words, compare and contrast the philosophies of constitutionalism
Which graph represents a function