Demo entry 6780792

Admin

   

Submitted by anonymous on Dec 29, 2018 at 03:31
Language: Bash. Code size: 178 Bytes.

#!/bin/bash
# Author: Yang Bo
# Time: 2018-12-28 22:34:46
sum=0
i=1
while [ $i -le 100 ]
do
    sum=$[ $sum+$i ]
    i=$[ $i+1 ]
    #sum=$(($sum+$i))
done
echo $sum

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).