You don't have to write palindrome programs in wikipedia.
i dnt have time to draw flow chart but i'll give the algorith..(only major steps) 1 :read n 2:m=n 3:if n=0 goto step 8,else goto step 4 4:r=n%10 5:rev=(rev*10)+r 6:n=n/10 7:goto step3 8:if m==rev,display "palindrome" else "not palindrome 9:stop
No. To be a palindrome the number must read the same forwards as backwards. "153" is not the same number as "351" so this is not palindromic!
/*To check whether a string is palindrome*/includeincludevoid main () { int i,j,f=0; char a[10]; clrscr (); gets(a); for (i=0;a[i]!='\0';i++) { } i--; for (j=0;a[j]!='\0';j++,i--) { if (a[i]!=a[j]) f=1; } if (f==0) printf("string is palindrome"); else printf("string is not palindrome"); getch (); }
Peep Eye
"Aha" is a palindrome that can be used as a preposition.
No, it isn't a palindrome.
The palindrome is Level.
There is no palindrome for 14.
Any number that is is a palindrome will always be a palindrome.
No. A palindrome reads the same backwards and forwards. 5791111975 is an example of a palindrome.
1998 is not and cannot be a palindrome.
"radar" is a palindrome for detector.
Radar is a palindrome for detector.
606 is a palindrome.
The palindrome is Noon.
Also a palindrome