-
Notifications
You must be signed in to change notification settings - Fork 0
/
0510BAN.PAS
103 lines (101 loc) · 2.73 KB
/
0510BAN.PAS
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
program und;
uses crt;
var myg: char;
begin
writeln('Naudokites klavisais nuo ` iki \');
repeat{ ord(myg)=27 do
{ begin }{
myg:=readkey;
if myg='`' then
begin
sound(100);
delay(1000);
nosound;
end;
if myg='1' then
begin
sound(200);
delay(1000);
nosound;
end;
if myg='2' then
begin
sound(300);
delay(1000);
nosound;
end;
if myg='3' then
begin
sound(400);
delay(1000);
nosound;
end;
if myg='4' then
begin
sound(500);
delay(1000);
nosound;
end;
if myg='5' then
begin
sound(600);
delay(1000);
nosound;
end;
if myg='6' then
begin
sound(700);
delay(1000);
nosound;
end;
if myg='7' then
begin
sound(800);
delay(1000);
nosound;
end;
if myg='8' then
begin
sound(900);
delay(1000);
nosound;
end;
if myg='9' then
begin
sound(1000);
delay(1000);
nosound;
end;
if myg='0' then
begin
sound(1100);
delay(1000);
nosound;
end;
if myg='-' then
begin
sound(1200);
delay(1000);
nosound;
end;
if myg='=' then
begin
sound(1300);
delay(1000);
nosound;
end;
if myg='\' then
begin
sound(1400);
delay(1000);
nosound;
end;
{ end; }
sound(random(1500));
delay(1500);
nosound;
write(myg);
until ord(myg)=27;
nosound;
clrscr;
end.