Here we will see how to get the number A raised to the power B using a bash script. The logic is simple. We have to use the "**" operator or the power operator to do this. Let us see the following program to understand this concept clearly.
#!/bin/bash # GNU bash Script a=5 b=6 echo "$(($a ** $b))"
15625
The above is the detailed content of Bash program to find A raised to the power B?. For more information, please follow other related articles on the PHP Chinese website!