Computing.Net > Forums > Solaris > Can anyone help me write this shell script

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Can anyone help me write this shell script

Reply to Message Icon

Name: leonstk
Date: October 20, 2009 at 10:01:44 Pacific
OS: Linux
Subcategory: General
Comment:

Pleaseenter a non-negative number: 3

3! = 3 X 2X 1
= 6

Pleaseenter a non-negative number: 10

10! = 10 X9 X 8 X 7 X 6 X 5 X 4 X 3 X 2 X 1
= 3628800


Pleaseenter a non-negative number: -1

Invalid input


p/s:output like above



Sponsored Link
Ads by Google

Response Number 1
Name: primal
Date: October 30, 2009 at 07:03:45 Pacific
Reply:

Edited: Misunderstood the question


0
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: Can anyone help me write this shell script

David , help me with this script www.computing.net/answers/solaris/david-help-me-with-this-script/3625.html

gcc runtime problem, help me~~~~~ www.computing.net/answers/solaris/gcc-runtime-problem-help-me/882.html

Sol8 install problems????Newbee www.computing.net/answers/solaris/sol8-install-problemsnewbee/2791.html