/* PC2.2 Using an enhanced for loop, write a java code to find the total of the elements in the array numbers. */ int[]
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
/* PC2.2 Using an enhanced for loop, write a java code to find the total of the elements in the array numbers. */ int[]
/* PC2.2 Using an enhanced for loop, write a java code to find the total of the elements in the array numbers. */ int[] numbers = {3, 4, 5, -5, 0, 12); /*PC2.3 Rewrite the code form PC2.2 twice, using a while loop and using a for loop */ //Using While loop //Using for loop
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!