subject

Declare an array of integers that has the capability to hold 10 values. Use a loop to assign the value 25 to the first spot in the array. For each subsequent spot, subtract 1. So for the second spot, the value will be 24. The third spot will be 23, and so on.
Once complete, print out the contents of the array.
The printed out array should look similar to this:
[25, 24, 23, ... ] // where '...' signifies the rest of the array values output
In Java

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 14:00, LuvIsRage2
Technician a says that with self-adjusting clutch systems, the release bearing constantly rotates. technician b says that the ball bearing portion of the release bearing should be lubricated with high-temperature grease during routine maintenance. which technician is correct?
Answers: 2
image
Computers and Technology, 23.06.2019 17:20, Morehollie9428
What is the best assassins creed game?
Answers: 2
image
Computers and Technology, 23.06.2019 20:00, shaheedbrown06
What software programs are used to to create professional publication? a.) graphics programs b.) word processors c.) page layout programs d.) spreadsheet programs
Answers: 2
image
Computers and Technology, 24.06.2019 02:00, akatherine1738
What is a loop? a. a collection of function definitions at the top of a program b. a line of code that defines a variable and assigns it a value c. a program that opens the turtle graphics window d. a block of code that repeats a specific number of times
Answers: 1
You know the right answer?
Declare an array of integers that has the capability to hold 10 values. Use a loop to assign the v...

Questions in other subjects: