Warning: Undefined array key -1 in
/sdf/sys/html/twenex/wiki/inc/html.php on line
1458
Differences
This shows you the differences between two versions of the page.
Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
tutorials:pascal [2024/06/20 04:12] papa |
tutorials:pascal [2024/06/20 05:10] (current) papa [Hello, World!] |
(* Hello program in Pascal *) | (* Hello program in Pascal *) |
| |
program Hello(Output); | program Hello (Output); |
begin | begin |
writeln('Hello, World!'); | writeln ('Hello, World!'); |
end. | end. |
</code> | </code> |
</code> | </code> |
| |
<sup>*</sup> Syntax of the EXECUTE command is ''EXECUTE //filename//[.//extension//]''. The file extension is optional if you used the standard source file extension (.PAS for Pascal) and there are no other program source files with the same name in your default directory. | * Syntax of the EXECUTE command is ''EXECUTE //filename//[.//extension//]''. The file extension is optional if you used the standard source file extension (''.PAS'') and there are no other program source files with the same name in your default directory. |
| * At the ''OUTPUT :'' prompt, press ''Enter'' to direct output to your terminal. |
<sup>*</sup> At the ''OUTPUT :'' prompt, press ''Enter'' to direct output to your terminal. | |
| |
===== Additional Information ===== | ===== Additional Information ===== |
The following is a reference on the ISO Pascal language standard: | The following is a reference on the ISO Pascal language standard: |
| |
* K. Jensen and N. Wirth, //[[http://pascal.hansotten.com/uploads/books/Pascal_User_Manual_and_Report_Fourth_Edition.pdf|Pascal User Manual and Report, 4th ed.]]// New York: Springer-Verlag, 1991. | * K. Jensen and N. Wirth, //[[http://pascal.hansotten.com/uploads/books/Pascal_User_Manual_and_Report_Fourth_Edition.pdf|Pascal User Manual and Report, 4th ed.]]// New York: Springer-Verlag, 1991. [Accessed: 2024/6/20] |