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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. edeita2

    prolog rule

    Solution for: prolog rule I found out where I went wrong myself, here`s the solution for future Prolog victims: code: inventory(Part, Quant):- Quant < 10. reorder(Part):-inventory(Part, Quant),Quant < 10, write('Time to reorder!'). result of prolog session: code: | ?-...
  2. edeita2

    prolog rule

    I am practicing some prolog, below is my code for a prolog predicate(rule) to check the inventory levels, so I try to write a reorder predicate which takes "Part" as an argument and print a message 'Time to reorder' if the inventory level is less than 10, it should normally print that, if it is...

Part and Inventory Search

Back
Top