There might be an error whereby the program may display an error about the letter "x" if so, just ignore it, this program worked on 13 tests, and as such i have decided to upload it. I would be thankful for any comments :)