Welcome to PGD!

Unfortunately as everyone else has been indicating, Windows being a visual platform, doesn't bring up a command prompt (aka DOS prompt) screen for you so you won't see that it actually IS executing, it's just not showing you the text that was printed. Actually it probably did show you it just opened the prompt window and closed it so fast you could have possibly seen it.

If you do open a command prompt it'll show it as once opened, the command prompt will stay open as an active program shell and act just like good old DOS.

The same here can be said for programs compiled for Linux and Mac OS X as well. With the exception that Linux programs will likely keep a "terminal" (same thing as the command prompt) open after execution unless told to do otherwise as the beginning of your program.

And yes switching to Pascal to learn concepts of programming is always a good idea. Pascal was created to teach programming and has grown to be a very strong and useful language over the many years it's been in use. After you've learned the basics of programming in Pascal you can eventually move on to learning Object Oriented Programming with Object Pascal too which brings programming to a whole new level and lets you be more organized as you make bigger and more complex programs.

Hope some of this helps and you stick with our community. Each person asking questions and helping others makes this site all the more nicer to visit.