Search
 
SCRIPT & CODE EXAMPLE
 

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

PREVIOUS NEXT
Code Example
Pascal :: pascal loop 
Pascal :: function in pascal 
Pascal :: does not equal in pascal 
Pascal :: Pascal (gpc 20070904) sample 
Powershell :: Take ownership of a file 
Powershell :: how to download git on windows using power shell 
Gdscript :: godot check if object is in group 
Gdscript :: gdscript while loop 
Clojure :: how to do operations inside a list clojure 
Abap :: what is the interface between the abap dictionary and the underlying database management system 
Erlang :: tcp server erlang 
Assembly :: 64 bit assembly Hello world 
Assembly :: Generate random strings only with uppercase letters and digits in Python 
Assembly :: what do you mean by io address and memory address 
Assembly :: fatal error: opencv2/core/version.hpp: No such file or directory 
Javascript :: jquery vslidation remove spaces from input 
Javascript :: jquery add disabled to button 
Javascript :: jquery run code after 5 seconds 
Javascript :: use jquery 
Javascript :: vimeo playback speed 
Javascript :: Basic JavaScript: Use Recursion to Create a Range of Numbers 
Javascript :: vuex-module-decorators rawError globally 
Javascript :: autoplay owl carousel 
Javascript :: how to get element by title js 
Javascript :: check ip json 
Javascript :: shadow elevation react native 
Javascript :: javascript capitalize string 
Javascript :: remove all options from select jquery 
Javascript :: swiper.js cdn 
Javascript :: angular go to route 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =