Program Description:
Write a program to print 21 rows of X\'s in the shape of a large X as illustrated below. Be sure so the two rows intersect at the \
You can try that:
public class ProductX { public static void main(String[] args) { for (int i = 0; i <= 10; i++) { for (int j = 0; j < 10; j++) { System.out.print(" "); if (i == j) { System.out.print("X"); } if(j == 9-i){ System.out.print("X"); } } System.out.println();} } }