Welcome -
Guest!
Login
/
Register Now
|
Search:
Home
Articles
Forum
Interview FAQ
Activities
News
Videos
Poll
Links
People
Groups
Artificial Intelligence Articles
Submit Article
Home
»
Articles
»
Artificial Intelligence
»
ProLog
RSS Feeds
Prolog Program to find Maximum of X and Y using Cut Predicate
Posted By:
Shaunak Patel
Category:
Artificial Intelligence
Views:
9759
predicates
go.
max(integer,integer,integer).
clauses
go:-
readint(X), readint(Y),
max(X,Y,_).
max(X,Y,X):- X>Y ,!.
max(X,Y,Y).
Goal: max(22,33,X)
X=33
1 Solution
Share:
Previous Post:
Perceptron in Neural Networks
Next Post:
Prolog program to rotate a list n places to the left
Didn't find what you were looking for? Find more on
Prolog Program to find Maximum of X and Y using Cut Predicate
Or get
search suggestion and latest updates
.
Shaunak Patel
author of Prolog Program to find Maximum of X and Y using Cut Predicate is from
India
.
View All Articles
Related Articles and Code:
Prolog program to find maximum number from a list
ProLog Program to find maximum number from inputted numbers
Program to find the maximum and minimum element in an array using threads
Program to find minimum and maximum from an array using structure
Find maximum and minimum of an array using Loop Splitting
Program of finding Maximum and minimum of an array using Loop Splitting
Program to find the maximum and minimum element in an array using threads
An applet program to find maximum of three numbers using textField
Program to find minimum and maximum number from user specified 3 numbers
Program to show find the maximum depth of a Binary Search Tree
Give example of cut command?
List of 221 MS Word Short Cut Keys
ProLog Program to read 10 integers in a list and 10 from the database and find 2nd maximum of all of them
Prolog program of predicate ordered (List) which is true if List is an ordered list of numbers
Prolog program to define two predicates evenlength(List) and oddlength(List) so that they are true if their argument is a list of even or odd length
Prolog program that defines a predicate maxlist (L,Max) where Max is the greatest number of the list
Predicate logic representation and then converting them to prolog, prove the proof.
Prolog program to find last item of the list
PROLOG PROGRAM TO FIND THE PERMUTATION OF THE GIVEN LIST
PROLOG PROGRAM TO FIND SUBLISTS OF THE GIVEN LIST
Other Interesting Articles in Artificial Intelligence:
Prolog program for solving the blocks problem using hill climbing
Prolog program to read and write file
ProLog Program of searching a students data when Name or a phone no is input
Prolog program of Parent Tree
Prolog program to reverse a given list
Prolog program to print the zodiac sign of a given birth date
Prolog program to find the nth element of a list
Prolog program to add an element to the begining of a list
Prolog program that defines a relation max(X,Y,Max) where Max is the greater of X and Y
Artificial Intelligence and Expert Systems, Problems of AI domain and AI techniques
ProLog Program to search record by name and phone number
Prolog program to check whether a number is a member of given list or not
Program to compare character and string
Artificial Intelligence and Expert Systems university paper of year 2002
Prolog program to add an element in a last position in given list
Prolog program to find factorial of given number
Prolog program to find sum of all the numbers in a given list
Program to find the names of all the student who have obtained marks greater than equal to the Marks in the Subject specified at the goal prompt
ProLog Program to create a window and input a new string, remove the window and text, write to existing window
Prolog program to solve the 4-3 Gallon Water Jug Problem
Please enter your Comment
*
*
Comment should be atleast 30 Characters.
Please put code inside [Code] your code [/Code].
Please login to post comment
No Comment Found, Be the First to post comment!
Artificial Intelligence
View All
Material
ProLog
Assembly Language
C Programming
C++ Programming
Visual C++
OOAD
Cobol
Java
SQL Server
Asp.net MVC
Rest and WCF Services
Entity Framework
Knockout.Js
Unix / Linux / Ubuntu
Networking
OOPs Concept
HTML
Dos
SQL
System Analysis & Design
Gadgets
Internet
CSS
Javascript
.Net Framework
Asp.net
C#
VB.Net
Python
Perl
Oracle
Software Engineering
RDBMS Terms
AJAX Framework
Design Pattern
UML
WPF
WCF
SEO
PowerShell
Visual Studio
WWF
BizTalk Server
Azure
General
Testing
Online Certifications
PHP
My SQL
LinQ
Project Management
Silverlight
XML
MS Office
Windows OS
DHTML
Sharepoint