Logo 
Search:

C Programming Forum

Ask Question   UnAnswered
Home » Forum » C Programming       RSS Feeds

porolog programming

  Asked By: Bahar    Date: Jul 08    Category: C Programming    Views: 21706
  

can you help me in these questions?
1- ?-end_two ([1,2,3,4,5,6],x,y,R)
X=5, Y=6, R=[1,2,3,4]
this program give us 2 last elemnt of list+ rest of list

2- ?- delete_end ([1,2,3,4,5],3,[1,2])
yes
This program tell us that output list is the initial list after deleting 3 last element of list

3- ?- lex_less([1,12],[1,12,20]).
yes
?- lex_less ([7,15,20,30],[7,5,15,1]).
no

this tell us :Is first list smaller than second?

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on porolog programming Or get search suggestion and latest updates.




Tagged: