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 wOOdy-Soft 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: *

  • Users: nesfrank
  • Content: Threads
  • Order by date
  1. nesfrank

    how can I do this in prolog?

    Give a tail-recursive definition for each of the following predicates. power(X,Y,Z): XY=Z. gcd(X,Y,Z): The greatest common divisor of X and Y is Z. sum(L,Sum): Sum is the sum of the elements in L. Thank you very much and God bless your day
  2. nesfrank

    how to do this in prolog niece, aunt, relative?

    I justed started prolog and wanted some help on doing the following: Express the following relations and queries in Prolog: niece(X,Y): X is a niece of Y. aunt(X,Y): X is an aunt of Y. relative(X,Y): X and Y are relatives. Who are joe's children? How many children does joe have? Are joe...

Part and Inventory Search

Back
Top