write program for palindrome
Answer Posted / anonymous
#include<stdio.h>
#include<conio.h>
int main()
{
int n,s=0,m,r;
printf("enter any no");
scanf("%d",&n);
m=n;
while(n>0)
{
r=n%10;
s=s*10+r;
n=n/10;
}
if(m==s)
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
return 0;
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can we overload operator in c++?
Is c++ a good beginners programming language?
What information can an exception contain?
What does I ++ mean in c++?
What is the disadvantage of using a macro?
What is the difference between interpreters and compilers?
Explain "const" reference arguments in function?
Describe public access specifiers?
Why do we use classes in c++?
What is c++ array?
What is a character in c++?
How to tokenize a string in c++?
Which ide is best for c++?
What is extern c++?
How can you quickly find the number of elements stored in a a) static array b) dynamic array ? Why is it difficult to store linked list in an array?how can you find the nodes with repetetive data in a linked list?