What would you like to do?

# Write a C program to check whether the string is palindrome or not?

Would you like to merge this question into it?

#### already exists as an alternate of this question.

Would you like to make it the primary and merge this question into it?

#### exists and is an alternate of .

cls
input "enter a string=";s\$
l=len(s\$)
for i = l to 1 step-1
c\$=mid\$(s\$,i,l)
next i
r\$=c\$+r\$
if r\$=c\$ then
print "no. is palindrome"
else
print "no. is not palindrome"
endif
end
35 people found this useful
Thanks for the feedback!

# Write a program to check whether a string is palindrome or not?

include #include #include #include void main() { char str[50]; int i,l,f; cout

# How do you write a program in C to check whether a number is a palindrome or not?

The simplest method is to reverse the digits of the original number and check to see if the reversed number is equal to the original. This is not an efficient way of doing it

# Write a c program to check whether a string is palindrome or not using stack.?

include #include #define N 100 #define PALINDROME 0 #define NONPALINDROME 1 /*Program that tells you whether what you enter is a palindrome or not*/ char pal[N]; /

# Write a recursive C program to check whether the string is palindrome or not?

something like this: static int check1 (const char *p, size_t len) { if (len

# Write an algorithm to check whether a given string is palindrome or not?

include #include #include void input(char a[ ]) { int i; printf("\\n enter string\\n"); scanf("%s",a); } void output(char a[ ]) { printf("\\n string is %s",a);

# Write a PHP program to check whether the string is palindrome or not?

You can do this:  

# Write a C program to check whether a number is palindrome or not?

//assume all files r included. void main() { int n,n1,s=0,r; coutn; n1=n; while(n) {r=n%10; s+=r*10; n=n%10; } if (n1==s) cout

# Write a C program to check a string is a palindrome or not?

include   #include   void main()   {   char string,string1;   printf("enter the string:\\n");   scanf("%s",&string);   strcpy(string1,string); 

# Write a c plus plus program to check whether entered string is palindrome or not?

There are several ways to determine if a string is a palindrome or  not. Typically, you must first ignore all spacing, capitalisation  and punctutation within the string, wh

# C program for checking whether the string is palindrome or not?

// Palindrome.C : A palindrome is a string that is spelled the same way forward and backward. // This code verifies the string entered IGNORING CAPITALIZATIONS, SPACES and P

# How do you write a program to check whether a string is a palindrome?

Remove all spaces and punctuation from the string. Convert the  string to lower case. Now copy the string. You now have two  strings, a and b. Reverse string b. If a equals

# How do you write a program in C to check whether a word is a palindrome or not?

It is a simple program. i think u may understand it : #include #include #include void main() { char s[10]=answers.com; char x[10]; int a; clrscr(); strcpy(x,s); strrev(s); a=

# How do you write a program in C use function to check whether a number is a palindrome or not?

A number is a palindrome if it is the same from the front and the back. Eg: 121, 12321, etc are palindromes. You can use the following method to check if a number is a palindr

# How do you write an interactive C program to check whether the given string is a palindrome or not using pointers?

include   #include   #include    /* returns true of the given string represents a palindrome,   otherwise returns false */   bool is_palindrome (const c

# Write a pseudo logic to check whether a string is palindrome or not?

Prepare the string for processing: Remove all punctuation from the  string (e.g., commas, hyphens, whitespace, etc).   Convert to the same case (e.g., lower-case).  