Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by lekfr97

  1. lekfr97

    Prolog help with min,max program

    Thank you very much. It's very simple now when you know the solution. Thank you for your help! /L
  2. lekfr97

    Prolog help with min,max program

    I have written this Prolog program: max(X,Y,X) :- X>=Y. max(X,Y,Y) :- X<Y. min(X,Y,X) :- X<Y. min(X,Y,Y) :- X>=Y. minlist([X],X). minlist([X,Y|Rest],Min) :- minlist([Y|Rest],MinRest), min(X,MinRest,Min). maxlist([X],X). maxlist([X,Y|Rest],Max) :- maxlist([Y|Rest],MaxRest), max(X,MaxRest,Max)...

Part and Inventory Search

Back
Top