15 lines
144 B
Bash
Executable File
15 lines
144 B
Bash
Executable File
#! /usr/bin/bash
|
|
# File: return-value-echo.sh
|
|
|
|
|
|
function square() {
|
|
|
|
echo $(( ${1} * ${1} ))
|
|
}
|
|
|
|
|
|
square "2"
|
|
square "4"
|
|
square "3"
|
|
square "32"
|