Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- program hw13;
- {$APPTYPE CONSOLE}
- {$R *.res}
- uses
- System.SysUtils;
- var
- a, b, temp, chislo, pos1, pos2, pos3:integer;
- begin
- write('a = ');
- read(a);
- write('b = ');
- read(b);
- for chislo := a to b do
- begin
- temp := chislo;
- pos1 := temp div 100;
- pos2 := temp div 10 mod 10;
- pos3 := temp mod 10;
- if (pos1 <> pos2) and (pos1 <> pos3) and (pos2 <> pos3) then
- Write(pos1,pos2,pos3, ' ');
- end;
- readln;
- readln;
- end.
Advertisement
Add Comment
Please, Sign In to add comment