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
How do I use arrays in c++?
What does the following do: for(;;) ; a) Illegal b) Loops forever c) Ignored by compiler...not illegal
How can a called function determine the number of arguments that have been passed to it?
How do you invoke a base member function from a derived class in which you have not overridden that function?
What is the most common mistake on c++ and oo projects?
What is pointer with example?
Do you know what is overriding?
What are the advantages of c++? Explain
Does c++ have foreach?
What are the advantages of using const reference arguments in a function?
Is there a c++ certification?
Why is c++ considered difficult?
What do you know about near, far and huge pointer?
Which is most difficult programming language?
Can a program run without main in c++?