Hi guys, I try to execute this task but and i wrote this script but when i make check, it tells me that something wrong as is shown in screenshot, is there anything wrong in this script?
There is indeed something missing in your script! You are not referring to the variables correctly. You are trying to make a sum of the letters A
, B
and C
, plus you have part of the sum outside of the $(( ))
. Only what is inside of this construct will be treated as arithmetic.
average=$(( ($A + $B +$C) / 3) )