What would you like to do?

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

already exists.

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 .

Write a C program to check whether the string is palindrome or not?
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
2 people found this useful
Thanks for the feedback!
Follow

What process did you go through when directing "A Small Section of the World"?

View Full Interview

Write a c program whether a given word is palindrome do using function?

int main(int argc, char* argv[]){    char a[10],b[10];    printf("enter any string\\n");    scanf("%s",a);    printf("a=%s",a);    strcpy(b,a);    strrev(b);   

How do you check whether a string is palindrome or not using vb Script?

Option Explicit Sub mac() Dim Mystr Dim Revstr Mystr = InputBox("enter the string") Revstr = StrReverse(Mystr) If StrComp(Mystr, Revstr) = 0 Then MsgBox ("the given string is

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=

Program to check that given string is palindrome or not in C?

/*To check whether a string is palindrome*/includeinclude void 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';

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 Java program to find whether a given string is a palindrome or not?

Answer 1:   private static final boolean isPalindrome(final String str) { return str.equals((new StringBuilder(str)).reverse().toString()); }   Answer 2:   impo
Write programs for String Reversal Palindrome check?

Write programs for String Reversal Palindrome check?

include #include #include int main() { char s[50] revs[50]; int i=0 j=0; printf("Enter the string to be reversed : \\n"); scanf("%s",&s); for(i=strlen(s)-
Write a c program that reverse a given integer number and check whether the number is palindrome or not?

Write a c program that reverse a given integer number and check whether the number is palindrome or not?

Program:    #include   #include   void main()   {   long int n,m,rev=0,r;   clrscr();   printf("\\nEnter the number:");   scanf("%ld",&n); 

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 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 Palindrome program in c without using string functions?

Write a Palindrome program in c without using string functions?

//Printing word in reverse import java.io.*; class sss { void main()throws Exception { BufferedReader BR= new BufferedReader (new InputStreamReader(System.in)); System.ou

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]; /
C program for checking whether the string is palindrome or not?

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