- Pc2 2 Using An Enhanced For Loop Write A Java Code To Find The Total Of The Elements In The Array Numbers Int 1 (36.14 KiB) Viewed 22 times
/* PC2.2 Using an enhanced for loop, write a java code to find the total of the elements in the array numbers. */ int[]
-
- Site Admin
- Posts: 899603
- 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