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 iteration

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 :: array pascal 
Pascal :: pascal 
Pascal :: pascal special characters 
Powershell :: CMD & Powershell History 
Powershell :: powershell remove node_modules 
Powershell :: Windows 10 fbomber Batch Script 
Gdscript :: godot get scene root 
Gdscript :: gdscript variables 
Clojure :: how to make a directory in clojure 
Abap :: the interface between the abap dictionary and the underlying database management system 
Assembly :: array month name 
Assembly :: install retroarch on Linux 
Assembly :: difference between machine language and assembly language 
Assembly :: datauristring pdf open in php 
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+7 =