-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path13.pas
More file actions
41 lines (39 loc) · 714 Bytes
/
13.pas
File metadata and controls
41 lines (39 loc) · 714 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
program someTest;
var a,c,b,d : integer;
var endPointer : boolean;
begin
endPointer := true;
a := 1;
d := 0;
c := 0;
b := 42;
if d = 1 then
begin
b := a + a;
c := b;
writeln(a);
if d < 2 then
begin
a := a+1;
b := b+2;
end;
end;
writeln(c);
if d > 4 then
begin
writeln(a);
writeln(b);
end
else
begin
writeln(c);
writeln(c);
end;
writeln(endPointer);
d := 0;
while d < 4 do
begin
writeln(a);
d := d+1;
end
end.