shoodymon

Untitled

Mar 8th, 2021
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.51 KB | None | 0 0
  1. program hw13;
  2.  
  3. {$APPTYPE CONSOLE}
  4.  
  5. {$R *.res}
  6.  
  7. uses
  8.   System.SysUtils;
  9.  
  10. var
  11.     a, b, temp, chislo, pos1, pos2, pos3:integer;
  12.  
  13. begin
  14.   write('a = ');
  15.   read(a);
  16.   write('b = ');
  17.   read(b);
  18.  
  19.   for chislo := a to b do
  20.     begin
  21.           temp := chislo;
  22.           pos1 := temp div 100;
  23.           pos2 := temp div 10 mod 10;
  24.           pos3 := temp mod 10;
  25.           if (pos1 <> pos2) and (pos1 <> pos3) and (pos2 <> pos3) then
  26.           Write(pos1,pos2,pos3, ' ');
  27.     end;
  28.  
  29. readln;
  30. readln;
  31. end.
Advertisement
Add Comment
Please, Sign In to add comment