Tag Archives for Arithmetic Operations

Shell program to find sum of squares

# Shell program to find sum of squares of 10 numbers sum=0 i=0 while [ $i -ne 10 ] do echo "Enter Number" read num sum=`expr $sum + $num \* $num` i=`expr $i + 1` done echo Sum of squares … Continue reading

16. February 2009 by Jishnu
Categories: Shell Scripting | Tags: , | Leave a comment

← Older posts

Newer posts →