Advertisement
volkovich_maksim

t_13_24_b_v1_volkovich

Nov 21st, 2015
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.44 KB | None | 0 0
  1. function younger(gr:group;d:date):integer;
  2.      var i,j:integer;
  3.      begin
  4.        j:=0;
  5.        for i:=1 to 25 do
  6.          if (gr[i].sex=female) and ((gr[i].birthday.year>d.birthday.year) or ((gr[i].birthday.year=d.birthday.year) and (gr[i].birthday.month>d.birthday.month)) or
  7.              ((gr[i].birthday.year=d.birthday.year) and (gr[i].birthday.month=d.birthday.month) and (gr[i].birthday.day>d.birthday.day))) then k:=k+1;
  8.      end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement