Home      Affiliated Colleges      Course content      First Sem     Second Sem     Third Sem     Fourth Sem     Fifth Sem     Sixth Sem     Seventh Sem     Eighth Sem     Lab report 4th sem     Contact    

Sunday, March 7, 2010

Questions for Prolog Lab

Write a program to find whether a given list is odd or even. For
example the list [a, b, c, d] is even length and [a, b, c] is odd
length yes/no.
Write a program to reverse a list [1, 2, 3, 4] - [4, 3, 2, 1]
Write a program to translate a list of members between 0 and 9 to a
list of the corresponding words
For example
Translate ([1, 3, 4, 7], [one, three, five, seven])






No comments:

Post a Comment

^ Scroll to Top Related Posts with Thumbnails ^ Go to Top