s=0for (( i=1;i<=100;i=i+1 ))do s=$(($s+$i))done echo "1+2+3+......+100 ==>$s"
#!/bin/shsum=0for ((i=0;i<=100;i++))do sum=$((sum+i))doneecho sum=$sum
#!/usr/bin/perl$counter += $_ for 1..100;print $counter;