Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PASCAL

Pascal iteration

Program PascalRepeatLoop;
Var 
number:integer;

begin
    number := 1;

    //REPEAT-UNTIL Statement - Post Condition Repetition
    Repeat      
        Write('Enter an integer number: ');
        readln(number);
    Until number = 0;       //Run code above, until "number" is 0
    
    Writeln();
    Writeln('Program Ended');
End.
 
PREVIOUS NEXT
Tagged: #Pascal #iteration
ADD COMMENT
Topic
Name
4+8 =