Silverfrost Logo About Us | Contact Us
 
Print statement

Print statement

This is an example of a PRINT statement. A PRINT statement is used to send information to the standard output device (normally the screen). The asterisk (*) represents list directed output. With this kind of output, the programmer does not specify how the data is to be presented but rather a default presentation (format) is used for each item in the list.

Here there is only one item in the list that follows the asterisk, namely a string. A string is a sequence of characters enclosed either by double quotation marks (as here) or by single quotation marks. Use double quotation marks when the string includes a single quotation mark and vice-versa. If the string contains both kinds, insert a single quote twice in order to obtain one single quote in the output.

 

 

Copyright © 1999-2017 Silverfrost Limited