public class nat{
public static int k=2;
public static int Power(int n){
if(n==0){
return 1;
}
int sum=k*Power(n-1);
return sum;
}
public static void main(string argu[]){
int n=5;
System.out.println(Power(n));
}
}
0 Comments