Search
 
SCRIPT & CODE EXAMPLE
 

PASCAL

pascal loop

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.
Comment

pascal loop

Program PascalWhileLoop;
Var 
number:integer;

begin
    number := 1;

    //WHILE DO Statement - Pre Condition Repetition
    While number <> 0 do    //Run code below, while "number" is not 0
    begin
        Write('Enter an integer number: ');
        readln(number);
    end;
    
    Writeln();
    Writeln('Program Ended');
End.
Comment

for loop pascal

program for_loop;

var
    i : Integer;
    max : Integer;

begin
  Write('Type a number :');ReadLn(max);
  for i := 1 to max do
    WriteLn(i)
end.
Comment

PREVIOUS NEXT
Code Example
Pascal :: pascal cheat sheet pdf 
Pascal :: does not equal in pascal 
Pascal :: pascal const 
Powershell :: debloat window 10 
Powershell :: How to display firewall rule ports with powershell 
Powershell :: To Show wifi profiles stored on a windows computer 
Gdscript :: godot check if in exported version 
Gdscript :: gdscript dictionary 
Clojure :: algorithm to reverse a string clojure 
Lisp :: print lisp 
Assembly :: using shape property in flutter for circular corner 
Assembly :: does assembly language use registers 
Assembly :: where correlation is used 
Assembly :: dokuwiki redirect 
Javascript :: jquery vslidation remove spaces from input 
Javascript :: js on page ready 
Javascript :: open ilnk target js 
Javascript :: refresh window js 
Javascript :: jquery accept only excel file 
Javascript :: check if a variable is undefined jquery 
Javascript :: media query js 
Javascript :: change input placeholder text jquery 
Javascript :: get current url js 
Javascript :: convert to objectid mongoose 
Javascript :: javascript async delay 
Javascript :: javascript refresh page every 30 seconds 
Javascript :: how to change a css variable with javascript 
Javascript :: hide header react navigation 
Javascript :: listing dir by nodejs 
Javascript :: javascript celcius to farenheit 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =