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

Graph the function f.
A salesman commission on a$150,000 sale is $3000 what percentage is his commission
A taxi charges a base fee plus $0.75/km. A 10-km trip costs $8.70. a) What is the rate of change in this situation? b) Write an equation for the cost of hiring
When pan frying food with a stuffing, you may need to A. cook it more rapidly. B. turn it more often. C. keep the flame low D. finish it in the oven.
4h-8h Can you simplify it
Determine the probability of being dealt 3 tens from a standard deck of 52 cards when 3 cards are dealt
How has the US been involved in the Middle East since WWII?
If nominal GDP is $10 trillion and real GDP is $12 trillion, then the GDP deflator is a. 83.33, and this indicates that the price level has decreased by 16.67
Carbon and oxygen from ______ and ________ end up as part of a ________ molecule to the atmosphere when water is split during the light dependent reactions.
Is this a kind of conflict?? About a year ago one of my friends lied to me about very personal things so, when I had discovered that she was lying to me it felt