<span>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<span>screen 12
for x=0 to 640 step 5
cls
circle (x,240), 25
circle (x+100,240), 25
line (x+30,240)-(x+70,240)
line (x-50,240)-(x-30,240)
line (x+150,240)-(x+130,240)
line (x+150,240)-(x+150,190)
line (x-50,240)-(x-50,190)
line (x-50,190)-(x-10,190)
line (x+110,190)-(x+150,190)
circle (x+50,190),60 ,, 0 , 3.14
circle (x,240),30 ,, 0 , 3.14
circle (x+100,240),30 ,, 0 , 3.14
next x</span></span>
Const n=20; var a: array [1..n] of integer; i,s,k,v,j: integer; begin for i:=1 to n do readln (a[i]); writeln (a); for i:=1 to n do if (a[i] div 100 = 0) and (a[i] div 10 <> 0) then begin k:=k+1; if k=1 then s:=s+a[i]; if k=3 then s:=s+a[i] end; writeln (s); for i:=1 to n do begin for j:=1 to n-1 do if a[j]<a[j+1] then begin v:=a[j]; a[j]:=a[j+1]; a[j+1]:=v end end; writeln (a) end.
Const N = 5; Var a:array [1..N] of integer; i,S:integer; Begin randomize; S:=0; for i:=1 to N do begin a[i]:=random(61)-30; if (a[i]<0) and (a[i] mod 2 <>0) then S:=S+a[i]; end; writeln(S); readln; end.