write program for palindrome
Answer Posted / katta shravan kumar
#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;
n=n/10;
s=n*10+r;
}
if(m==n)
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What gives the current position of the put pointer?
Define a constructor - what it is and how it might be called (2 methods)?
What is pointer to member?
What is the need of a destructor? Explain with the help of an example.
Is c++ a difficult language?
What is name hiding in c++?
If a base class declares a function to be virtual, and a derived class does not use the term virtual when overriding that class, is it still virtual when inherited by a third-generation class?
What are the stages in the development cycle?
Write a program to interchange 2 variables without using the third one.
Why is c++ considered difficult?
Can manipulators fall in love?
What happens when you make call 'delete this;'?
What is the role of static keyword for a class member variable?
what is data abstraction in C++?
What is c++ mutable?