Input a random positive integer. Then create an integer array that has a size equal to the inputted integer.
Using a loop, add random integer values into the array one by one. The number of values to be stored is dependent on the inputted positive integer given in the first instruction.
Print out the largest integer among all the elements on the array, by any means necessary.
Comments
Leave a comment