public class stackisbuilding {
public static void main(String[] args) {
// TODO Auto-generated method stub
printdecreasing(5);
}
public static void printdecreasing(int n)
{ if(n==0)
{
return ;
}
System.out.println(n);
printdecreasing(n-1);
System.out.println("*");
}
}
in this program when base case is achieved then where the return statement will go? and why it is printing five times (*) in the output?