-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.p
57 lines (44 loc) · 792 Bytes
/
test.p
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
program Test;
label
Start;
const
MAX = 100;
PI = 3;
type
DayOfWeek = (Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday);
Point = record
x, y: integer;
end;
{*this is a comment*}
IntArray = array [1 ..10] of integer;
var
num1, num2: integer;
arr: intArray;
procedure DisplayMessage(msg: string);
var
x: integer;
begin
x := 2;
writeln(msg);
end;
function Add(a, b: integer): integer;
{*num4: integer;*}
begin
Add := a + b;
DisplayMessage('bonjour');
end;
begin
Start;
num1 := 10;;
num2 := 20;
goto Start;
{*if num1 > 5 then
begin
writeln('num1');
end*}
for i := 1 to 10 do
begin
arr[i] := i * 2;
end;
writeln('La somme de ', num1, ' et ', num2, ' est ');
end.