Friday, 12 December 2014

Shell Script to find the sum of two numbers

Write a Shell Script to find the sum of two numbers

Solution:
echo "Enter the two numbers "
read a
read b
c=`expr $a + $b`
echo "Sum is $c"

Execution:

No comments:

Post a Comment