shoodymon

Untitled

Mar 8th, 2021
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.47 KB | None | 0 0
  1. program hw9;
  2.  
  3. {$APPTYPE CONSOLE}
  4.  
  5. {$R *.res}
  6.  
  7. uses
  8.   System.SysUtils;
  9.  
  10. var
  11.     chislo, i, x:Integer;
  12.  
  13. begin
  14.   write(' chislo = ');
  15.   read(chislo);
  16.  
  17.   x := 10;
  18.   for i := 1 to chislo do
  19.     begin
  20.       while x <= chislo do
  21.       x := x*10;
  22.     end;
  23.     if chislo*chislo mod x = chislo then
  24.       write (chislo, ' является автоморфным ')
  25.     else write (chislo, ' не является автоморфным ');
  26. readln;
  27. readln;
  28. end.
Advertisement
Add Comment
Please, Sign In to add comment