# Write a program to find power of a number in java

Factorial of any number is the product of it and all the positive numbers below it for example factorial of 5 is 5! Here the problem of finding n! In the above calculator, enter your number and select the unit from which you should convert, you could see the value of the entered number in hundreds, thousands, lakhs, crores, millions, billions, trillions. One interesting thing to note here is that the value of 0!

My base case is when N, or the exponent, gets down to zero.

## How to implement power function in java

Let's write a shell script to find the factorial of a number. If you are satisfied with the number of digits provided by the native math library, then it is simple; just round to the desired number of digits. The basic idea is that you take the original problem and divide it into smaller more easily solved instances of itself, solve those smaller instances usually by using the same algorithm again and then reassemble them into the final solution. Factorial of a number n is the product of all number in decreasing order starting from the number n to 1. Let's change this to say, three to the fourth is equal to three squared times three squared. In mathematic representation factorial represents by! This is a really cool tool that converts numbers to letters. Note the direction of the arrow for accessing the drop down box.

This calculator has buttons and a zone to display the result, she offer various options. Logic to find maximum or minimum between three numbers in C program. Enter a Number to find factorial: 6. You may enter between two and ten non-zero integers between and Note that you do need the JDK 1. Rated 9/10 based on 72 review