Here is requirement, the array[4][4] can only be placed with number from 1-9 and all them need to form a pair.
ex: 1 1 2 2
3 3 4 4
5 5 6 6
7 7 8 8
but the number can only be used to make a pair which mean, if user input 1,1,1 or 1,1,1,1 will get error. If the user entered 2 number which not a pair also error.
error ex: 1 1 2 2
3 3 4 4
5 5 6 6
7 7 8 9
Here is the code,i have a rough mindset of how to make it only but using x4 for loop seems to get me error for some reason i haven't input while loop since i couldn't even settle the current problem so if there is any help with details codes and explanation will be very appreciate.