is this isn't a help...
*****************************************
on first post
- you could make random x and y
- you can use multiple ways like
if
else if
cases
if i give you directly the code from how then you won't learn it.
if you know whats the name and you search for it then you will learn
thats also why i said that eme didn't have to give you the solution but could instad make you thing to try an other way
if i tell you there are other ways and you really want to learn it you'll automaticly search for it
if i give you the other ways already coded you just copy past, see if it works and won't learn a thing.
but i don't expect you to understand that
************************************************** *
maybe you will consider this as a help
[Only registered and activated users can see links. Click Here To Register...]
edit
little critic
- why im not dumb
then why did you at if (nr == 10) ???