Code Section : clear echo " Enter the number " read n number = $n reverse =…
Programming : clear echo " Enter value for x " read x echo " Enter v…