public class HelloWorld{ public static void main(String []args){ for(int x = 10; x > 0; x--){ System.out.println(""); for(int y = 0; y<x; y++){ System.out.print(" "); } for(int z = 10; z>x; z--){ System.out.print("*"); } for(int k = 10; k>x; k--){ System.out.print("*"); } } } }
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more