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

what does scientific methodology involve
DANIEL HAS A SAMPLE OF PURE COPPER. ITS MASS IS 89.6 GRAMS, AND ITS VOLUME IS 10 CUBIC CENTIMETERS. WHATS THE DENSITY OF THE SAMPLE
Evaluate the expression for a=-1 and b=5. Show your work. 5a-7b+b^2
Applying the Laws of Sines and Cosines
A soccer league has 190 players. Of those players 60% are boys. How many boys are in the soccer league?
What particles are found in the area surrounding the necleus
How do I find sin^-1(cos(pi))
distinguish between geography and physics
two minutes after a diver enters the water,he has descended 52 feet.After5 minutes, he has decended 130 feet.At what rate is the scuba diver decsending
Which of the following is not an authoritarian form of government? A. Totalitarianism B. Dictatorship C. Absolute monarchy D. Direct democracy