linux shell scrip for adding two numbers



linux shell scrip for adding two numbers

linux shell scrip for adding two numbers

#! /bin/bash

echo ” ADDITION OF TWO NUMBERS ”
echo “———————-”
echo “———————”

echo ” enter the first number ”
read a

echo ” enter the second number ”
read b

c=` expr $a + $b`

echo ” the sum is :” $c

Comments are closed.