Given two number A and B write a shell script to find the value of AB .
Input : 2 4 Output : 2 to the power 4 is 16 Input : 1 0 Output : 1 to the power 0 is 1
A to the power B (AB) means multiplying A, B times. Using a naive approach to solve this problem.
A = 2 and B = 3
A3 = 8 which comes by multiplying 2 3 times i.e. 2*2*2 = 8 .
- Bash program to check if the Number is a Prime or not
- Bash program to check if the Number is a Palindrome
- Leap Year Program with Bash Shell Scripting in Windows
- Bash shell script to find sum of digits
- Bash shell script to find out the largest value from given command line arguments
- Write a bash script to print a particular line from a file
- Fibonacci Series in Bash
- Useful and time saving bash commands in Linux
- Average of given numbers in Bash
- Sorting an array in Bash using Bubble sort
- Simple Calculator in Bash
- Programs for printing different patterns in Bash
- Bash shell script to swap two numbers
- Bash Script to get Low Battery Alert in Linux
- How to Fix Minimal BASH Like Line Editing is Supported GRUB Error In Linux?
- How to find time taken by a command/program on Linux Shell?
- A Shell program To Find The GCD | Linux
- Linux Kernel Module Programming: Hello World Program
- Create Directory or Folder with C/C++ Program
- Named Pipe or FIFO with example C program
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.