Problem: Write a Java program to read Nintegers into an array A and Find the sum of
Fantastic news! We've Found the answer you've been seeking!
Question:
Problem: Write a Java program to read Nintegers into an array A and
- Find the sum of all negative numbers in array.
- Find the sum of all positive numbers in array.
- Find the average of all negative numbers.
- Find the average of all positive numbers.
- Find the maximum value in array.
- Find the minimum value in array.
Write a program to insert element into an array “A” in specificlocation
For example
0 1 2 3 4
24 | 47 | 20 | 25 |
|
You needs to insert element 50 into position 2.
Related Book For
Posted Date: