public class adaf {


 public static void main(String[] args) {
static int i = 1;
int j;

  for(j=1;j<15; j++){
  for(;i<j;i++){
  printf(i);
  }
  
  printf("\n");
  }

 }

}

지금 스튜디오 없이 그냥쓰는거라 문법에 맞는지는 모름.
static쓰면 변수가 연속값이 되니까.