Page 1 of 1

Write a Java program which reads a one-dimensional integer array from the user. The program should calculate maximum and

Posted: Sat May 14, 2022 3:47 pm
by answerhappygod
Write A Java Program Which Reads A One Dimensional Integer Array From The User The Program Should Calculate Maximum And 1
Write A Java Program Which Reads A One Dimensional Integer Array From The User The Program Should Calculate Maximum And 1 (24.41 KiB) Viewed 60 times
Write a Java program which reads a one-dimensional integer array from the user. The program should calculate maximum and minimum values among the values that is included in the array as both positive and negative. For example, for the array (-9,5, 1, 2, 3,-3, 2, -4,-5) only 3, -5, -3,5 will be included in the calculation as the array does not contain negative of other values. Additionally, the average of the negative numbers in the array should be printed.