Sign in Join
Wiki copytemporary

Basic Pascal Tutorial/Chapter 2/Output: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: Basic Pascal Tutorial/Chapter 2/Output

OldNewLine
1+2B - Output (author: Tao Yue, state: unchanged)
2+
3+For writing data to the screen, there are also two statements, one of which you've seen already in last chapter's programming assignment:
4+
5+``` pascal
6+write (Argument_List);
7+writeln (Argument_List);
8+```
9+
10+The `writeln` statement skips to the next line when done.
11+
12+You can use strings in the argument list, either constants or literal values. If you want to display an apostrophe within a string, use two consecutive apostrophes. Displaying two consecutive apostrophes would then requires you to use four. This use of a special sequence to refer to a special character is called escaping, and allows you to refer to any character even if there is no key for it on the keyboard.
13+
14+---
15+*From the Free Pascal wiki, page "Basic Pascal Tutorial/Chapter 2/Output", as it stood on 2022-08-20 after a change by Kai Burghardt, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history