6.WAPT Find The Max and Min Number in An Array: INPUT: (1,2,3,4,5,6,7,8,9,10) OUTPUT
The document provides code to find the maximum and minimum numbers in an array. It defines a class with methods to accept an array of 10 integers as input, then iterate through the array to track and update the running maximum and minimum values. It prints the final maximum and minimum values found in the array.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
47 views1 page
6.WAPT Find The Max and Min Number in An Array: INPUT: (1,2,3,4,5,6,7,8,9,10) OUTPUT
The document provides code to find the maximum and minimum numbers in an array. It defines a class with methods to accept an array of 10 integers as input, then iterate through the array to track and update the running maximum and minimum values. It prints the final maximum and minimum values found in the array.