public class pyramid {
public static void DesignPattern (int row){
int i,j;
for (i = 0; i <= row ;i++){
for (j = 0 ;j<=i; j++){
System.out.print("*");
}
for(j=0; j <=(row-i-1)*2 ;j++){
System.out.print("__");
}
for (j=0; j<=i;j++){
System.out.print("*");
}
System.out.println();
}
}
public static void main (String[] args){
DesignPattern(3);
}
}