pascal print to console

To print a message to the console in Pascal, you can use the WriteLn procedure. Here's an example of how to use it:

program PrintToConsole;

  WriteLn('Hello, World!');

In this example, the WriteLn procedure is used to print the message "Hello, World!" to the console. The begin and end. keywords define the program block in Pascal, and the WriteLn procedure is called within this block.

When you run this program, it will output the message "Hello, World!" to the console. You can replace the string inside the WriteLn procedure with any message you want to print.

I hope this helps! Let me know if you have any further questions.