how can i get the largest and smallest value that i input if i input 10 integers?

thank you...new in programming