Welcome to the Forum! Please read this topic to learn how to post code correctly and other useful tips for newcomers.

Fix your post, and give your variables better names. What does 'm', 'n', and...