Answer the question
In order to leave comments, you need to log in
Where am I wrong?
There is such a task:
Look at the function from the bash script:
counter () # takes one argument
{
local let "c1+=$1"
let "c2+=${1}*2"
}
for i in {1..10}; do counter $i; echo "counters are $c1 and $c2"; done;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question