[Solved] Pyramid of asterisk using while loop in java
[ad_1] Think of your pyramid as drawn on a coordinate system. You need to make sure that both the x-coordinate and the y-coordinate move in the whole program. Scanner pal = new Scanner (System.in); System.out.println(“Enter the number of rows you want”); int n = pal.nextInt(); int rows = 0; while (rows < n) { int … Read more