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
What is Destructor in C++?
What are protected members in c++?
Implement stack operations with pointers with appropriate exception checks.
Is rust better than c++?
How much do coding jobs pay?
what are the decision making statements in C++? Explain if statement with an example?
What are the four main data types?
What is endl c++?
What is the use of c++ programming language in real life?
Describe the role of the c++ in the tradeoff of safety vs. Usability?
What is the best it certification?
What are default parameters? How are they evaluated in c++ function?
What is the difference between a baller and a reference in C++?
Can static member variables be private?
Write a c program for binary addition of two 8 bit numbers.