For this Question: Given first term A and the common ratio R of a GP (Geometric Progression) and an integer N, your task is to calculate its Nth term.<b>User Task:</b>
Since this will be a functional problem, you don't have to take input. You just have to complete the function 
 <b>NthGP()</b> that takes the integer A, R and N as parameter.


<b>Constraints</b>
1 <= A, R <= 100
1 <= N <= 10
Return the Nth term of the given GP.

<b>Note:</b> It is guaranteed that the Nth term of this GP will always fit in 10^9.Sample Input:
3 2
5

Sample Output:-
48

Sample Input:-
2 2 
10

Sample Output:
1024

<b>Explanation:-</b>
For Test Case 1:- 3 6 12 24 48 96., I have written this Solution Code: 
    static int NthGP(int l, int b, int h){
int ans=l; 
h--;
   while(h-->0){
ans*=b;
    }
return ans;
}




, In this Programming Language: Java, Now tell me if this Code is compilable or not?