Объяснение:
program Xxx;
const
RndLimit = 10000;
var
x : integer;
begin
Repeat x := Random(RndLimit) until x > 999;
writeLn('Random X= ', x);
WriteLn('Modifyed X=', (x mod 1000 mod 100 mod 10), (x mod 1000 mod 100 div 10) , (x mod 1000 div 100) , (x div 1000) );
end.
Free Pascal Compiler version 2.6.2-8 [2014/01/22] for x86_64
Copyright (c) 1993-2012 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling main.pas
Linking a.out
10 lines compiled, 0.3 sec
Random X= 5488
Modifyed X=8845
...Program finished with exit code 0
Press ENTER to exit console
Объяснение:
program Xxx;
const
RndLimit = 10000;
var
x : integer;
begin
Repeat x := Random(RndLimit) until x > 999;
writeLn('Random X= ', x);
WriteLn('Modifyed X=', (x mod 1000 mod 100 mod 10), (x mod 1000 mod 100 div 10) , (x mod 1000 div 100) , (x div 1000) );
end.
Free Pascal Compiler version 2.6.2-8 [2014/01/22] for x86_64
Copyright (c) 1993-2012 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling main.pas
Linking a.out
10 lines compiled, 0.3 sec
Random X= 5488
Modifyed X=8845
...Program finished with exit code 0
Press ENTER to exit console