打印平行四边形

for (int i = 1; i <= 5; i++) {
  for (int k = 1; k <= i; k++) {
    System.out.print(" ");
  }
  for (int j = 1; j <= 8; j++) {
    System.out.print("*");
  }
  System.out.println();
}

posted @ 2016-08-27 21:43  快乐留给你  阅读(273)  评论(0编辑  收藏  举报