import java.util.Scanner; public class Four { public static void main(String[] args) { Scanner read = new Scanner(System.in); System.out.print("What size: "); int size = read.nextInt(); for (int row = 0; row < size; row += 1) { for (int col = 0; col < size; col += 1) { if (col + row == size/2 || col == size/2 && row >= size/3 || row == size/2 && col < 3 * size / 4) { System.out.print("* "); } else { System.out.print(" "); } } System.out.println(); } } }