paulstanley2207 paulstanley2207
  • 26-02-2020
  • Computers and Technology
contestada

What is the value of alpha[4] after the following code executes? int[] alpha = new int[5]; for (int j = 0; j < 5; j++) alpha[j] = 2 * j - 1; one three five seven

Respuesta :

tonb
tonb tonb
  • 26-02-2020

Answer:

7

Explanation:

alpha[4] = 2*4 - 1, which evaluates to 7.

Answer Link

Otras preguntas

When a farmer gave the cattle more feed for one year, they weighed more when he sold them. Which is the dependent variable? A. feed for one year B.
2 tenths in scientific notation
What is the area of the figure?
87-(36.5-11.5)*(-3)+9 simplify using order of operations
Seventeenth-century England was plagued by A. disease epidemics. B. conflict between the king and Parliament. C. attacks from abroad. D. economic recession.
350 people went to movies on saturday. fewer people went to the movie on sunday. about 600 people went to the movies in all. how many people went to the movies
Where is eygpt located
why do hurricanes form in tropical latitudes
Imagine you are a farmer living in the hills of ancient Greece. Your brother-in-law, a fisherman who lives on the coast, has just come to visit, and the two of
Urine is stored in which of the following organs before elimination? a. pancreas b. ureters c. urethra d. urinary bladder