(Find the Two Largest Numbers) Using an approach similar to that in Tutorial 3.1, find the two largest values among the 10 numbers. [Note: You must input each number only once.]
(Find the Two Largest Numbers) Using an approach similar to that in Tutorial 3.1, find the two largest values among the 10 numbers. [Note: You must input each number only once.]
The input consists of n (0<n<100) lines.
Each line consists of 10 integers(range from 0 to 100).
The last line of input consists of Int(-1).
Each value is unequal to others.
输入
1 2 3 4 5 6 7 8 9 10 10 9 8 7 6 5 4 3 2 1 -1
输出
Largest is 10 Second largest is 9 Largest is 10 Second largest is 9