더북(TheBook)

2. 다음 셸 스크립트를 실행했을 때 화면에 출력되는 값을 작성하세요.

#!/bin/bash

total="0"
index="1"
end="10"
while ((index <= end))
do
    ((total = total + index))
    ((index = index + 1))
done
echo "$total"

답:  

정답 확인