Menu

Write Main Method Reads Sequence Integers Input Prints Smallest Largest Numbers Input Summ Q43862546

Write a main() method that reads a sequence of integers frominput and prints the smallest and largest numbers in the input andthe summation of the sequence. For example, if the input is 3 1 4 511 6 2 6 9, the program should print out: “The smallest is 1,the largest is 11, and the sum is 47.”

class Lab1 { public static void main(String[] args) { // Your code is here // Your code is here // Your code is here }}

Expert Answer


Answer to Write a main() method that reads a sequence of integers from input and prints the smallest and largest numbers in the in…

OR