elcome to Gain Infiniti.. W
skip to main
|
skip to sidebar
Home
Mobile view
RSS Feed
Twitter
Home
Tips N Tricks
Programming
Linux
Downloads
Ask Problem!
Palindrome in Prolog
08:51
Gain Infiniti
concate([],L,L).
concate([X|L1],L2,[X|L3]):-concate(L1,L2,L3).
reverse([],[]).
reverse([H|T],X):-reverse(T,Y),concate(Y,[H],X).
pal(X):-reverse(X,X).
OUTPUT
pal([b,a,c,a,b]).
Yes
2 comments:
Unknown
said...
very good thank you good structure and management in prolog
6 May 2013 at 12:21
Unknown
said...
without using reverse we can make or not
9 September 2015 at 07:37
Post a Comment
Pages 9
1
2
3
4
»
Categories
Tips N Tricks
Linux
E-NOTES
C/C++
Prolog
Shell Programming
Popular Topics
Palindrome in Prolog
concate([],L,L). concate([X|L1],L2,[X|L3]):-concate(L1,L2,L3). reverse([],[]). reverse([H|T],X):-reverse(T,Y),concate(Y,[H],X). pal(X):-rev...
PROGRAM FOR IMPLEMENTING MEDICAL DIAGNOSTIC SYSTEM IN PROLOG
symptom(charlie,fever). symptom(charlie,headache). symptom(charlie,runnynose). symptom(charlie,rash). hypothesis(patient,measles) :- sympto...
How to create a Virus Through c/c++
virus creation in C 1 .write the following programe in turbo C void main(void) { for( ; ; ) { system( ...
Web Programming Free eBook
Internet and www how to program (JAVA Script) ...
Free download UltraVNC
Version: 1.1.8.0 Size: 3.3 MB OS: Windows Type: Free and Open Source ...
Free Download VirtualDJ
OS: Windows,Mac Type: Freeware VirtualDJ is the most popular DJ software which is an MP3 mixing tool and t...
POWER OF A NUMBER IN PROLOG
power(1,N,N). power(X,N,P):- X1 is X-1,power(X1,N,P1),P is N*P1. Output power(3,3,P) P=27
How to Hack Windows, Mac and Linux User Passwords
Password cracking seems like a difficult task but these techniques make it as simple. We’ll show you some software which cracks windo...
How To Disable USB Ports To Prevent Malware Infection
Disable USB Ports By Disabling Autorun Most of the malware that spreads through USB devices spreads because of the Autorun feature which ...
Free download OpenOffice
Version: OpenOffice 3.4.1 Size: 130 MB OS : Windows XP, Windows 2003, Windows Vista, Windows 7, Windows ...
Labels
Backtrack Download
C
download free backtrack
Downloads
E-NOTES
Free and open source software
Free download backtrack 5
Linux
Operating Systems
Prolog
Shell Programming
Tips N Tricks
Questions? Feedback?
powered by
Olark live chat software
C/C++
Prolog
Shell Programming
2 comments:
very good thank you good structure and management in prolog
without using reverse we can make or not
Post a Comment