THE EXERCISE OF THE GUYS GUYS HAS BEEN MOVED TO THE MENU "EXERCISE OF Teacher"

count the number

Threads: For an array of integers, each number separated by a space. Ending sequence is the number 0. Find the largest number, the smallest in the range and number of numbers in sequence (not count 0 Last row).
Input: A sequence of numbers separated by spaces. Last number is the number 0.
Output: A line of 3 numbers separated by spaces, respectively the largest number, the smallest in the range and number of rows.
For example:

input:
7 6 5 4 3 2 0
output:
7 2 6

You are not logged in? Log in to Submit Now!

29 Comments

Add a Comment