셀프체크
1.
function sum()
{
local n="$1"
local total="0"
for ((i = 1; i <= $n; i++))
do
let "total += i"
done
echo $total
}
셀프체크
1.
function sum()
{
local n="$1"
local total="0"
for ((i = 1; i <= $n; i++))
do
let "total += i"
done
echo $total
}