Hello,
Can any one suggest me the logic for the following :
Now, I have the number stored in variable 'x' , 'y' and 'z' which is to be matched with the four set of numbers say four arrays.
I want to match this 'x' , y and 'z' with each array and print the output for each number matched.
note : no numbers or array will be of two digit.
also the array set is different for each variable 'x' and 'x' is ranging from 1 to 9.
i.e if x=1; the array set will be
a1={2,3,} a2={9,8} a3={4,7,6} a4={5}
the x and y can be anything ranging from 1 to 9.
now suppose if y=6 and z=2 then a1 and a3 should selected and the output should be the message which is written in number six and number 2.
and i f x is different the array set will be different.
can you suggest me simpler logic to do this.
If you have not understand the above script please let me know.
Thanking you!