
Code:Method

Output:

Code:Method with Arguments

Output:

Note
first argument is "$1" then "$2","$3"...
Code:Method with return

Output:

Note
Can't return string only numeric
"$?":give the exit status of last command executed
Code:Method with operations

Output:

No comments:
Post a Comment