Here is one possible set of results of the pretty-printing of the programs in the test data file. First program ======================================================== program int X, Y, XY; begin read X; Y = 0; while (X > 0) loop read XY; write XY; Y = Y + XY; X = X - 1; end; write Y ; end ======================================================== Second program: ======================================================== program int ABC, D; begin read ABC; read D; while (ABC != D) loop if (ABC > D) then ABC = ABC - D; else D = D - ABC; end; end; write D; end ======================================================== Third program: ======================================================== program int X1, X4; int X2, X3, X7; begin X1=0; X2=1; X3=1; read X4; while (X1 < X4) loop X7=X2+X3; X2=X3; X3=X7; X1=X1+1; end; write X2; end ======================================================== The above is certainly not the only possible form of pretty-printing but whatever you choose, make sure that the structure of the program is clear and obvious from your output. If you notice problems with the above, please email or post on Piazza. --Neelam