#!/bin/bashsum=0a=0while truedo let a++ if [ $a -le 100 ] && [ `expr $a % 2` -eq 0 ] then sum=$[sum+a] if [ $a -eq 100 ] then break fi else continue fidoneecho $sum