Shell program - Addition of two numbers

CODE:

#! /bin/bash

echo "enter two numbers:"
read a
read b
c=`expr "$a" + "$b" `

echo "$a + $b ="$c

OUTPUT:

Shell program - Addition of two numbers

No comments :

Post a Comment