It's doing exactly what the title says. I use Nano in Cygwin to make the code. Then I use GCC to compile it. It comes out with the a.exe file like always. But when I try to run the program using windows explorer the window opens and then closes a split second later, I can barely even see what's printed on the screen. I'm 100% sure the program doesn't have any errors, because I've double checked it, triple checked, and I copied it straight from the book "C Programming for Absolute Beginners". It might be able to run if I start it up with the command prompt in Cygwin. But I've tried that with the "run" command and nothing happens. Please help me.