-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject1.lpr
88 lines (63 loc) · 1.09 KB
/
project1.lpr
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
program project1;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Classes
{ you can add units after this };
var
x:integer;
sel: char;
hata: integer;
girdi: string;
procedure cikis;
begin
writeln;
writeln;
writeln;
writeln('<enter> ile cik');
readln;
end;
procedure carp(sayi:integer; ust:integer);
begin
writeln(sayi, ' carpi ', ust , ' ', sayi * ust)
end;
function toplama(x,y:real):real;
begin
toplama := x + y;
end;
begin
x := 0;
while x < 10 do
begin
writeln(x);
x:=x+1;
end;
writeln;
repeat
writeln(x*x);
x :=x-1;
until x < 0;
writeln;
for x:=1 to 10 do
begin
writeln('for: ', x);
end;
writeln;
//repeat
// writeln('a ya da b yaz');
// readln(sel);
//until (sel = 'a') or (sel = 'b');
//writeln('girdi basarili: ', sel);
//writeln('rakamsal deger girin');
//repeat
// readln(girdi);
// Val(girdi, x, hata);
//until hata = 0;
//writeln ('girdi basarili: ', girdi);
//readln;
carp(3,7);
writeln(toplama(2,2):0:2);
cikis;
end.