write program for palindrome
Answer Posted / madhupriya
#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;
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 ? | 1 Yes | 1 No |
Post New Answer View All Answers
What are the various arithmetic operators in c++?
Explain selection sorting. Also write an example.
What is difference between c++ and c ++ 14?
Is it possible to write a c++ template to check for a function's existence?
Why c++ is so important?
Write about the stack unwinding?
What would happen on forgetting [], while deallocating an array through new?
How does java differ from c and c++?
What sorting algorithm does c++ use?
Is c++ the best programming language?
What is the use of typedef?
Is there a c++ certification?
Mention the ways in which parameterized can be invoked. Give an example of each.
What is the basic structure of c++ program?
Specify some guidelines that should be followed while overloading operators?