import java.util.Scanner;
public class Exercisexx{
  public static void main(String[]abc){
    int row,column;

    Scanner in = new Scanner(System.in);
    System.out.print("input a =");
    int a =in.nextInt();
    while(a<10){
      System.out.print("a should be bigger than 10"+"\n");
      System.out.print("input a =");
      a =in.nextInt();
    }
    System.out.print("input position :");
    int position = in.nextInt();
    while(position>4){
      System.out.print("position should be 1,2,3 or 4"+"\n");
      System.out.print("input position :");
      position = in.nextInt();
    }
    if(position==1){
      for(row=0;row<=a;row++){
        for(column=0;column<=a;column++){
          if(column<=row){
            System.out.print("*");
          }else{
            System.out.print(" ");
          }
        }
        System.out.print("\n");
        }
      }
    if(position==2){
      for(row=0;row<=a;row++){
        for(column=0;column<=a;column++){
          if(column>=row){
            System.out.print("*");
          }else{
            System.out.print(" ");
          }
        }
        System.out.print("\n");

    }
  }
  if(position==3){
      for(row=a-1;row>=0;row--){
        for(column=0;column<=a;column++){
          if(column<=row){
            System.out.print("*");
          }else{
            System.out.print(" ");
          }
        }
        System.out.print("\n");
}
}
if(position==4){
      for(row=a-1;row>=0;row--){
        for(column=0;column<=a;column++){
          if(column>=row){
            System.out.print("*");
          }else{
            System.out.print(" ");
          }
        }
        System.out.print("\n");
      }
    }
  }
}


@@ -42,16 +42,17 @@
 ercisexx
+ 
 %7B%0A  publ
@@ -83,16 +83,17 @@
 ng%5B%5Dabc)
+ 
 %7B%0A    in

fix as comments