1) program project1;
var a:char;
s:integer;
begin
s:=0;
repeat
writeln('Введите символ');
readln(a);
case a of
'1','2','3','4','5','6','7','8','9','0': s:=s+1;
end;
until a='0';
writeln('введено s цифр');
readln;
end.
2) var A, I, Summa : Byte;
begin
Randomize;
Summa := 0;
for I := 1 to 5 do
begin
I := Random (21) - 10;
Write (IntToStr (I) + ' ');
Summa := Summa + I;
end;
Writeln;
Writeln ('Summa = ' + IntToStr (Summa));
Readln;
end.