Advertisement
CyberN00b

6.1 (перебор)

Oct 23rd, 2020
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.45 KB | None | 0 0
  1. var
  2.     i, count, min, max:longint;
  3. begin
  4.     count := 0;
  5.     min := 999999;
  6.     max := 0;
  7.     for i:= 1033 to 7737 do
  8.         if( (i mod 5 = 0) and not(i mod 11 = 0) and not(i mod 17 = 0) and not(i mod 19 = 0) and not(i mod 23 = 0) ) then begin
  9.             count := count + 1;
  10.             if (i < min) then
  11.                 min := i;
  12.             if (i > max) then
  13.                 max := i;
  14.         end;
  15.     write(count, ' ',  max, ' ', min)
  16. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement