When you finish writing the code, you compile it.
Than go to the folder where your compiler saves the program.
And there you will need the file that has the .exe extension.
Also you will need the dependencies mentioned by Duoas for .exe to work.
Put them in a folder, zip them and send to your friend.