Advertisement
Matvey_Kozvonin

1234

Jan 21st, 2024
98
0
59 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.29 KB | None | 0 0
  1. var a, b, c, n: Integer;
  2. pr, sq1, sq2: Real;
  3. begin
  4. n:=100;
  5. while n<=999 do begin
  6. a:=n div 100;
  7. b:= n mod 100 div 10;
  8. c:= n mod 10;
  9. pr:=a*b*c;
  10. sq1:=sqrt(a*10+b);
  11. sq2:=sqrt(b*10+a);
  12. writeln(n);
  13. if (pr=sq1) or (pr=sq2) then begin
  14. writeln(n);
  15.  
  16. end;
  17. n:=n+1;
  18. end;
  19. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement