echo “Enter Upper limit”
read n
$i=1
while [Si -lt $n]
do
expr ‘$sum=$sum+$i’
expr ‘$i=$i+2’
done
echo “Enter Upper limit”
read n
$i=1
while [Si -lt $n]
do
expr ‘$sum=$sum+$i’
expr ‘$i=$i+2’
done
1 comment:
no get answer
Post a Comment