Logo 
Search:

Artificial Intelligence Articles

Submit Article
Home » Articles » Artificial Intelligence » ProLogRSS Feeds

ProLog Program to find grade

Posted By: Milind Mishra     Category: Artificial Intelligence     Views: 4558

Program to find grade.......

Code for ProLog Program to find grade in Artificial Intelligence

predicates
    grade(integer)
clauses
    grade(MARKS) :-
        MARKS >= 70, write('a'),nl.
        
    grade(MARKS) :-
        MARKS < 70, MARKS >= 60, write('b'),nl.
  
Share: 


Didn't find what you were looking for? Find more on ProLog Program to find grade Or get search suggestion and latest updates.

Milind Mishra
Milind Mishra author of ProLog Program to find grade is from India.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!