Vous êtes sur la page 1sur 1

Coding

#Swapping two numbers using only two variables echo -n "Enter the values for x and y :" read x y echo "Before swapping the values of x and y" echo "x=$x y=$y" x=`expr $x + $y` y=`expr $x - $y` x=`expr $x - $y` echo "After swapping the values of x and y" echo "x=$x y=$y"

Vous aimerez peut-être aussi