Advertisement
ByMsx

Untitled

May 29th, 2014
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.25 KB | None | 0 0
  1.  
  2. for i := 1 to 18 do
  3. begin
  4.   if h[i] mod 2 = 0 then inc(kn)
  5.   else inc(kcn);
  6. end;
  7. if kn > kcn then
  8. begin
  9.   for i := 1 to 18 do
  10.   begin
  11.     if max < h[i] then
  12.     begin
  13.       nmax := i;
  14.       max := h[i];
  15.     end;
  16.   end;
  17.   h[nmax] := 0;
  18. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement