You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
144 B
15 lines
144 B
2 months ago
|
#! /usr/bin/bash
|
||
|
# File: return-value-echo.sh
|
||
|
|
||
|
|
||
|
function square() {
|
||
|
|
||
|
echo $(( ${1} * ${1} ))
|
||
|
}
|
||
|
|
||
|
|
||
|
square "2"
|
||
|
square "4"
|
||
|
square "3"
|
||
|
square "32"
|