Thursday, 11 December 2014

Shell Script to Reverse a digit using Positional Parameters.i.e. 1 2 3 to 3 2 1

Write a Shell Script to Reverse a digit using Positional Parameters. i.e. 1 2 3 to 3 2 1

Solution:
echo enter the digits of your number
read num1 num2 num3
echo your reverse number is
set $num1 $num2 $num3
echo $3 $2 $1


Execution:

No comments:

Post a Comment