Program perevod;
uses crt;
var a:integer;
d,i:byte;
mas:array [0..10] of shortint;
f,g:boolean;
Begin
clrscr;
writeln ('Vvedite chislo: Exit - press 0');
repeat
readln(a);
if (a<0) then g:=false
else g:=true;
d:=0;
if (a=0) then halt;
repeat
i:=0;
dec(a);
repeat
f:=true;
inc(mas[i]);
if (mas[i]=2) then
begin
mas[i]:=-1;
inc(i);
if (d<i) then d:=i;
f:=false;
end;
until f;
until (a=0);
for i:=d downto 0 do
begin
if g then write(mas[i]) else write(-mas[i]);
mas[i]:=0;
end;
writeln;
until (1<>1);
end.
Как обозначить цифры?, Помогите плиз решить вопрос! |