[ask] Need help in


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting [ask] Need help in
# 1  
Old 12-11-2009
[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..
# 2  
Old 12-11-2009
Nice phrasing but this sounds like homework/classroom stuff. Closing this thread and please check out the Forum Rules up there as well as this:
Homework & Coursework Questions - The UNIX and Linux Forums especially the Readmes in the top.
Also please use more describing subjects for your future threads please, ty.

Last edited by zaxxon; 12-11-2009 at 04:19 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question