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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
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[]

Post 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 21 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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply