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

Tell me an example where stacks are useful?

590


What are special characters c++?

564


What is meaning of in c++?

670


What is c++ map?

565


Explain terminate() function?

592






What is the full form of ios?

555


Can malloc be used in c++?

568


What size is allocated to the union variable?

593


give me an example for testing a program showing the test path .show how the test is important and complex.

2423


What gives the current position of the put pointer?

561


What is a class template?

589


What are move semantics?

675


Why use of template is better than a base class?

643


Define Virtual function in C++.

625


What is #include iostream?

736