BeginProgram: Lists1

BeginMain:
	ScalarDecl: const <int> NUM_SQUARES = 5
	ListDecl: [<int>] squares
	Comment: Put the squares into the list
	BeginFor: auto i in XRANGE(0, NUM_SQUARES)
		Expression: push(squares, i * i)
	EndFor
	Comment: Print out the squares from the list
	BeginFor: auto i in XRANGE(0, listsize(squares))
		PrintLine: format("{0:d}^2 = {1:d}", i, squares[i])
	EndFor
	
	PrintLine: listToString(squares)
EndMain
EndProgram
