Java Reference
In-Depth Information
program that prompts the user to enter the number n and the array of characters, as
shown in the sample output, and checks if the input array is a Latin square. The
characters are the first n characters starting from A .
Enter number n:
Enter 4 rows of letters separated by spaces:
4
A B C D
B A D C
C D B A
D C A B
The input array is a Latin square
Enter number n:
Enter 3 rows of letters separated by spaces:
3
A F D
Wrong input: the letters must be from A to C
 
 
Search WWH ::




Custom Search