Hello friends today i'm sharing a shell script program that print the series 1,8,27,64..........9 values.Just read the script it is very simple you can easily understand it.
#! /bin/sh
i=1
echo "Resultant series is:"
while test $i -le 9
do
j=1
p=1
while test $j -le 3
do
p=` expr $p \* $i `
j=` expr $j + 1 `
done
echo $p
i=` expr $i + 1 `
done
THANKS GUYS.......
No comments:
Post a Comment
Please Give Me Your Views