12-11-2009
1,
0
Join Date: Dec 2009
Last Activity: 11 December 2009, 3:29 AM EST
Location: sydney
Posts: 1
Thanks Given: 0
Thanked 0 Times in 0 Posts
[ask] Need help in
Hi guys
I'm a newbie in UNIX and I have an assignment like this
Accept a group of numbers, each can be up to 4 digits, ended with a 0, and find and display the largest, the smallest and the average of all valid input numbers (excluding the ending zero). For example, input of 246, 321, 16, 10, 12345, 4, 274 and 0 should result in 321 as largest and 4 as smallest, and average of 145, with an error message indicating that 12345 is invalid.
Im really confused how to solve this problem.
I really need your help
Thank you..