write program for palindrome

Answer Posted / md.irfan(rourkela)

#include<stdio.h>
#include<conio.h>
void main()
{
int n,s=0,m;
clrscr();
printf("enter any no");
scanf("%d",&n);
m=n;
while(n>0)
{
r=n%10;
s=s*10+r;
n=n/10;
}
if(m==n)
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}

Is This Answer Correct ?    1204 Yes 747 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of setfill in c++?

577


What are exceptions c++?

588


What is c++ best used for?

558


Write a single instruction that will store an EVEN random integer between 54 and 212 inclusive in the variable myran. (NOTE only generate EVEN random numbers)

1484


Is it possible to get the source code back from binary file?

706






What is c++ flowchart?

671


What kind of jobs can I get with c++?

589


the first character in the variable name must be an a) special symbol b) number c) alphabet

599


Can we sort map in c++?

587


Which operator cannot be overloaded c++?

583


When should we use multiple inheritance?

611


Write a Program for dynamically intialize a 2 dimentional array. Eg:5x20, accept strings and check for vowels and display the no.finally free the space allocated .

674


What are proxy objects in c++?

636


What is the latest c++ standard?

673


What is the this pointer?

629