1)Немного не понял фразу "меньше данного числа 2". Если найти сумму всех элементов, которые меньше двух в массиве размером 20 элементов, то это
var s,i:longint; m:array[1..100] of integer; begin for i:=1 to 20 do read(m[i]); s:=0; for i:=1 to 20 do if m[i]<2 then s:=s+m[i];
writeln(s); end. 2) var i:longint; m:array[1..100] of integer; begin for i:=1 to 20 do read(m[i]);
for i:=1 to 20 do if (m[i] mod 5=3) then writeln(m[i]); end.
3) var a,b,i:longint; m:array[1..100] of real; begin read(a); read(b); for i:=1 to 20 do read(m[i]); for i:=1 to 20 do if (m[i]>=a) and (m[i]<=b) then writeln(i); end.
4)var o,s,i:longint; m:array[1..100] of integer; begin for i:=1 to 20 do begin read(m[i]); s:=s+m[i]; end;
o:=s div 20;
for i:=1 to 20 do if m[i]>o then writeln(m[i]); end.
прощения, если есть ошибки в синтаксисе. Нет возможности проверить в компиляторе
Form1.Shape1.Visible = True
Form1.Shape2.Visible = True
Form1.Shape3.Visible = True
Form1.Shape4.Visible = True
Form1.Shape5.Visible = Falce
Form1.Shape6.Visible = Falce
Form1.Shape7.Visible = Falce
Form1.Shape8.Visible = Falce
End Sub
Private Sub Command2_Click()
Form1.Shape5.Visible = True
Form1.Shape6.Visible = True
Form1.Shape7.Visible = True
Form1.Shape8.Visible = True
Form1.Shape1.Visible = Falce
Form1.Shape2.Visible = Falce
Form1.Shape3.Visible = Falce
Form1.Shape4.Visible = Falce
End Sub