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

Short Essay On Rainy Season In India
What was good abt technology in 1930
I need help.. 7k/8-3/4-5k/16=3/8seven "k" over eight minus three fourths minus five "k" over sixteen equals three eighths
in the given figure , the value of x is
The following 3-D object is composed of identical cubes. The volume of the 3-D object is 56cm cubed. The surface area of the 3-D object is a) 30cm squaredb) 60c
what is quicksand? how does it work?
I need help.. 7k/8-3/4-5k/16=3/8seven "k" over eight minus three fourths minus five "k" over sixteen equals three eighths
what is a cloudburst?
An object that is farther from a converging lens than its focal point always has an image that is _____.invertedvirtualthe same in sizesmaller in size
What was the Battle of Wounded Knee?