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 c# written in c++?
What is c++ namespace?
what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?
How can you say that a template is better than a base class?
What is the role of static keyword for a class member variable?
What are c++ storage classes?
How are Structure passing and returning implemented by the compiler?
Which programming language is best to learn first?
What do you mean by public protected and private in c++?
What are the advantages of using a pointer?
What is oop in c++?
Why we use #include conio h in c++?
What does ctime() do?
What do you understand by zombie objects in c++?
What are c++ manipulators?