Question: Write an enhanced for loop to add up all the values of the array kittens , which is an array of 10 integers. Use the
Write an enhanced for loop to add up all the values of the array kittens, which is an array of 10 integers. Use the variable allKittens to hold the total. Assume allKittens has been initialized to 0, in java
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
