Hello Collection of AlgolW Programs
One HelloWorld program is not enough! Here is the collection of programs, which demonstrate some of basic Algol W elements.
1_adam.alw Empty program (begin and end only)
1_comment.alw Empty program with comment
1_comment1.alw program with comment @
1_comment2.alw program with comment % %
1_eva.alw line of text printing
1_noblock.alw absence of blocks in a program
2_adamar.alw integer variable declaration and assignment
2_outinteger.alw print of integer variable value
2_ininteger.alw reading of integer variable
2_array.alw integer array declaration and using
3_outreal.alw declaration and printing of real variable
3_inreal.alw reading of real variable
3_boolean.alw introduction of boolean data type
4_goto.alw goto operator: demonstration of infinite loop
4_if.alw demonstration of if operator
4_for.alw demonstration of for operator
4_for2.alw another type of for operator
4_while.alw while can be used only together with for
5_twoBlocks.alw main block and sub-block construction
6_typelessProc.alw procedure which return nothing
6_intProc.alw procedure which return integer number
6_realProc.alw procedure which return real number
7_string.alw printing of string constants
7_length.alw length of string constant
7_outchar.alw output of character
7_inchar.alw read of character
7_terminator.alw delimiter (space) output
8_fileWrite.alw writing to the file
8_fileRead.alw reading from the file