package ru.job4j;

/**.
*
* @author Anton Vasilyuk
* @version 1.0
* @since 0.1
*/

public class Paint {
	/**.
	* Method for construction piramid
	* @param h height piramid
	* @return result
	*/
	public String piramid(int h) {

		StringBuilder pir = new StringBuilder();

		String floor = "^ ";

		String res = "\n";

		int i = 0;
		for (i = 0; i < h; i++) {
            String spica = "";
            int x;
            for (x = 0; x < h - 1 - i; x++) {
                spica = spica + " ";
            }

            pir.append(spica).append(floor).append(res);
            floor = floor + "^ ";

        }
		return pir.toString();

	}

}
@@ -314,28 +314,19 @@
 %22;%0A%0A
-%09%09int i = 0;%0A
 %09%09for (
+int 
 i = 
@@ -377,27 +377,8 @@
 %22%22;%0A
-            int x;%0A
     
@@ -390,16 +390,20 @@
    for (
+int 
 x = 0; x

add file for chapter_001_4.3