Programming :
clear
echo " Enter value for x "
read x
echo " Enter value for y "
read y
echo " Before swap; x=$x and y=$y "
z=$x
x=$y
y=$z
echo " After swap, x=$x and y=$y "
Programming :
clear
echo " Enter value for x "
read x
echo " Enter value for y "
read y
echo " Before swap; x=$x and y=$y "
z=$x
x=$y
y=$z
echo " After swap, x=$x and y=$y "
0 Comments