Calculating the value of e: Difference between revisions

Content added Content deleted
m (→‎{{header|UNIX Shell}}: minor simplification)
Line 4,222: Line 4,222:
declare -i e n rfct=one
declare -i e n rfct=one


while (( (rfct /= ++n) != 0 ))
while (( rfct /= ++n ))
do e+=rfct
do e+=rfct
done
done