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

Use the word bank below to answer the questions that follow: chemical mixture heat capacity homogeneous viscosity sublimation physical property compound chemica
I .....( not to speak) to my sister for ages. I should really call her. past pimle or a present perfeect simple
i need help with this worksheet please
(10x - 4) รท 5 = 20 what is x
what are the effects of acid rain polluting the great lakes
I need help guys, please!.
How does water give life to our community? Help me ASAP
Which of these statements best describes a theory? A) it is a well supported description B) it is a well supported explanation C) it is not supported by data
Find sin P. 1.Sin P=21/29 2.Sin P=21/20 3.Sin P=20/29 4.Sin P=29/21
Alyssa created a new how-to video for her DIY website and is curious how much her viewers like the new video. She decides to poll the next 100 viewers who share