Hello Guys,For my homework I must write a shell script to do this serie,
I know that I must use the "bc" for that, but for the script's itself i have no idea,(beginner)
Can you plz just help me for have some idea?
I wrote a script but it did not worked
echo "Input number"
while [ $counter -ne $n ]
ans=`expr 4*(-1/(2*$counter+1))`| bc -l
echo "the sum of the series is :-$ans"