package text; public class Protice { public static void main(String[] args) { for(int i = 0;i < 5;i++ ){ for(int a = 0;a <= i;a++){ System.out.print(" "); } for(int b = 1;b <= 2*(4-i)+1;b++ ){ System.out.print(" *"); } System.out.println(); } } }
package text; public class Protice { public static void main(String[] args) { for(int i = 0;i < 5;i++ ){ for(int a = 0;a <= i;a++){ System.out.print(" "); } for(int b = 1;b <= 2*(4-i)+1;b++ ){ System.out.print(" *"); } System.out.println(); } } }