Page 1 of 1

/* PC2.2 Using an enhanced for loop, write a java code to find the total of the elements in the array numbers. */ int[]

Posted: Mon Jun 06, 2022 12:39 pm
by answerhappygod
Pc2 2 Using An Enhanced For Loop Write A Java Code To Find The Total Of The Elements In The Array Numbers Int 1
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 23 times
/* 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