@@ -0,0 +1,430 @@
+package loop;%0A/**%0A*     .%0A* @author dlukyanchuk%0A* @since 19.03.2017%0A* @version 1%0A*/%0Apublic class Paint %7B%0A/**%0A*    .%0A* @param h -  %0A*/%0A%09public String pyramid(int h) %7B%0A%09%09for (int high = 1; high %3C= h; h++) %7B%0A%09%09%09for (int length = 1; length %3C= high * 2 - 1; length++) %7B%09%09%09%09%09%09%09%09%09if (length %3E= h - high + 1 && length %3C h + high) %7B%0A%09%09%09%09%09System.out.print(%22%5E%22);%0A%09%09%09%7D else %7B%0A%09%09%09System.out.print(%22 %22);%09%0A%09%09%09%09%7D%0A%09%09%0A%0A%7D%0A%09%09System.out.println();%0A%7D%0A%7D

add Paint