Shell program - swapping of two numbers without using third variable

CODE:

#! /bin/bash

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

echo "$a - $b ="$c

OUTPUT:

Shell program - swapping of two numbers without using third variable

No comments :

Post a Comment