import java.io.*; public class Baum { public static void main (String argv[]) throws IOException { BufferedReader input = new BufferedReader (new InputStreamReader(System.in)); int x, i; String str; System.out.print ("Hoehe eingeben: "); str = input.readLine (); x = Integer.parseInt(str); for (i=0; i < x; i++) { for(int g = x; g > i; g--) { System.out.print(" "); } for(int y=-1; y < i; y++) { System.out.print("*"); } for(int h=0; h < i; h++) { System.out.print("*"); } System.out.print("\n"); } for (int j=0; j < i; j++) { System.out.print(" "); } System.out.print("I\n"); } }