lab 4_4b

 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
program Lab44b;
var
s, l, g, v, r, x: real;
begin
writeln('rastoyanie');
readln(s);
writeln('kut');
readln(x);
x := x * pi / 180;
g := 9.8;
v := 300.0;
r := 5.0;
l := (sqr(v) * 2 * sin(x) * cos(x)) / g;
if ((s - r) > l) then begin
writeln('nedolit');
end else if ((s + r ) < l) then begin
writeln('perelit');
end else begin
writeln('v cil');
end;
end.