Logo 
Search:

Artificial Intelligence Articles

Submit Article
Home » Articles » Artificial Intelligence » ProLogRSS Feeds

ProLog Program to print message

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

Program to print message......

Code for ProLog Program to print message in Artificial Intelligence

predicates
   run(char)

goal
   run(X).                                      /* This is a internal goal. */

clauses
   run(X) :-
      makewindow(1, 7, 7, " Hello World Program ", 0, 0, 25, 80),
      write("Hello World (first)"),
      readchar(X),
      removewindow.

   run(X) :-
      write("hello World (second)"),
      readchar(X).
  
Share: 


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

Milind Mishra
Milind Mishra author of ProLog Program to print message 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!