*/
Written some cool source code? Upload it to Programmer's Heaven.
*/

View \WHILELP.PAS

Getting Started with the Pascal tutorial, source

Submitted By: WEBMASTER
Rating: (Not rated) (Rate It)


(* Chapter 4 - Program 7 *)
program While_Loop_Example;

var Counter : integer;

begin
   Counter := 4;
   while Counter < 20 do begin
      Write('We are in the while loop, waiting ');
      Write('for the counter to reach 20. It is',Counter:4);
      Writeln;
      Counter := Counter + 2;
   end;
end.

corner
© 1996-2008 CommunityHeaven LLC. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
North American business development: Nicolai Wadstrom. Publisher: Lars Hagelin.