Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- program hw9;
- {$APPTYPE CONSOLE}
- {$R *.res}
- uses
- System.SysUtils;
- var
- chislo, i, x:Integer;
- begin
- write(' chislo = ');
- read(chislo);
- x := 10;
- for i := 1 to chislo do
- begin
- while x <= chislo do
- x := x*10;
- end;
- if chislo*chislo mod x = chislo then
- write (chislo, ' является автоморфным ')
- else write (chislo, ' не является автоморфным ');
- readln;
- readln;
- end.
Advertisement
Add Comment
Please, Sign In to add comment