Difference between revisions of "WriteLn"
From SCAR Divi Manual
(→Example) |
|||
| Line 19: | Line 19: | ||
== Example == | == Example == | ||
| − | + | <source lang="scar"> | |
| − | + | begin | |
| − | + | WriteLn('Hello!'); | |
| − | + | WriteLn(1); | |
| − | + | WriteLn(True); | |
| + | end. | ||
| + | </source> | ||
| + | |||
| + | Output: | ||
| + | Hello! | ||
| + | 1 | ||
| + | 1 | ||
Revision as of 13:53, 25 June 2011
Definition
procedure WriteLn(x);
Description
This function writes data defined in x to the debug box. It accepts a wide variety of types. Only base types are accepted.
Accepted Types
Example
begin
WriteLn('Hello!');
WriteLn(1);
WriteLn(True);
end.Output:
Hello! 1 1