Scripts zu Rückgabewerte.

This commit is contained in:
Olli Graf
2024-09-22 12:16:16 +02:00
parent 48da83fdd3
commit 23e7a9090a
7 changed files with 63 additions and 7 deletions

14
teil16/return-value-echo.sh Executable file
View File

@@ -0,0 +1,14 @@
#! /usr/bin/bash
# File: return-value-echo.sh
function square() {
echo $(( ${1} * ${1} ))
}
square "2"
square "4"
square "3"
square "32"