package com.aaa;

import java.util.Scanner;
//重在参与,欢迎评价,吐槽~~~~
//输出直角三角形 public class Se { public static void main(String[] args) { Scanner c = new Scanner(System.in); System.out.println("请输入三角形的行数--------"); int x = c.nextInt(); for (int i = 1; i <= x; i++) { for (int j = 1; j <= i; j++) { System.out.print("* "); } System.out.println(); } } }

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-08
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案