0% found this document useful (0 votes)
21 views2 pages

Flowchart Dari Perulangan Repeat To Until, While To Do, For To Do

The document discusses three types of looping structures in Pascal: repeat until, while do, and for do. It provides an example code snippet for each one. Repeat until loops through code repeatedly and checks the condition at the end. While do checks the condition at the beginning and loops while it's true. For do loops a set number of times, from a starting to ending value.

Uploaded by

Intan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views2 pages

Flowchart Dari Perulangan Repeat To Until, While To Do, For To Do

The document discusses three types of looping structures in Pascal: repeat until, while do, and for do. It provides an example code snippet for each one. Repeat until loops through code repeatedly and checks the condition at the end. While do checks the condition at the beginning and loops while it's true. For do loops a set number of times, from a starting to ending value.

Uploaded by

Intan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Flowchart dari perulangan repeat to until, while to do, for to do

1. Flowchart dari perulangan repeat.....until


Contoh :
uses crt;
var
a : integer;
begin
repeat
writeln (a);
inc (a);
until (a<=10);
readln;
end.

2. Flowchart dari perulangan while.....do


Contoh :
uses crt;
var
a : integer;
begin
while (a<=10) do
begin
writeln (a);
inc (a);
end;
readln;
end.

3. Flowchart dari perulangan for.....do


Contoh :
uses crt;
var
a : integer;
begin
clrscr;
for a := 1 to 10 do
writeln (a);
readln;
end.

You might also like