vinarsky_evgeny

Untitled

Nov 22nd, 2015
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.27 KB | None | 0 0
  1. {Автор: Винарский Евгений 112 гр.}
  2. program z_12_23(input,output);
  3.  
  4. function potomok(a,b:name): boolean;
  5. begin
  6. if ((a=no) and (b=no)) then potomok:=false
  7. else if(potomok(a,papa(b))) then potomok:=true
  8.      else potomok:=potomok(a,mama(b));
  9. end;
Advertisement
Add Comment
Please, Sign In to add comment