How would I put the output is rows of ten?
public static void main(String[] args) {
int count = 1;
int j = 0;
// for (the numbers from 100 to 200)
for (int i = 100; i <= 200; i++)
// if (this number is divisible by 5 or 6, but not both)
if (((i % 5 == 0 ? 1 : 0) ^ (i % 6 == 0 ? 1 : 0)) != 0)
// Display this number (ten per line): System.out.print
System.out.print(i + " ");
j++;
if (j % 10 == 0)
{
System.out.println("\n");
j = 0;
}
}
}