write program for palindrome
Answer Posted / hillol bhattacharya
#include<stdio.h>
#include<conio.h>
void main()
{
int n,s=0,m,r;
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 ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is swift faster than c++?
What does new do in c++?
When should overload new operator on a global basis or a class basis?
Write about a nested class and mention its use?
What are the advantages of inheritance in c++?
Why isn't sizeof for a struct equal to the sum of sizeof of each member?
What is meaning of in c++?
What is c++ library?
Why cstdlib is used in c++?
Explain linear search.
what is pre-processor in C++?
What is stl containers in c++?
What happens when you make call 'delete this;'?
When does a name clash occur in c++?
what is the difference between overloading & overriding? give example.