package Recursion;
public class Recursion
{
public static void main(String[] args) {
// TODO Auto-generated method stub
pattern(5,4,4);
}
public static void pattern(int N,int row,int col) {
if(row == 0 ) {
return;
}
else if (col <= row) {
System.out.println("*");
if (col == 0) {
pattern(N,row-1,col);
}
pattern(N,row,col-1);
}
else if(col > row) {
System.out.println(" ");
pattern(N,row,col-1);
}
}
}