how to make .exe file?

I made a hang man game and I want to be able to execute the code using a .exe file like hangman.exe. How do I do that?!

Thank you for your time!
nvm I found the .exe file where I saved my project! xD
Topic archived. No new replies allowed.