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
Explain abstraction.
Tell me difference between constant pointer and pointer to a constant.
Explain "const" reference arguments in function?
What is array give example?
What is the difference between new() and malloc()?
What does iomanip mean in c++?
Can we distribute function templates and class templates in object libraries?
What is pointer to array in c++?
What do you mean by enumerated data type?
How do you add an element to a set in c++?
How can I learn dev c++ programming?
How do you decide which integer type to use?
How can you link a c program with a c function?
What is c++ & why it is used?
Describe delete operator?