@@ -0,0 +1,473 @@
+import java.util.Scanner;%0A%0Apublic class print_stars %7B%0A%09public static void main(String%5B%5D args) %7B%0A%09%09// directions and gather user input%0A%09%09Scanner s = new Scanner(System.in);%0A%09%09System.out.println(%22Enter the number of rows of of the star pyramid%22);%0A%09%09int rows = s.nextInt();%0A%09%09String star = %22*%22;%0A%0A%09%09// print star pyramid%0A%09%09for(int i = 1; i %3C= rows; i++) %7B%0A%09%09%09int j = i;%0A%09%09%09while(j != 0) %7B%0A%09%09%09%09System.out.printf(%22%25s%22, star);%0A%09%09%09%09j--;%0A%09%09%09%7D%0A%09%09%09System.out.printf(%22%5Cn%22); %0A%09%09%7D%0A%09%7D%0A%7D%0A%0A

print a pyramid star