1267: 用while语句找最大值(2)

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:23 Solved:12

Description

写一个程序,可以输入一批数数字,当输入0时结束输入,并且输出最大的正数。

Input

输入任意个数的数字。输入0时结束循环输入

Output

输出最大数

Sample Input Copy

8 2 6 9 2 4 0

Sample Output Copy

9