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
Write a program in C++ for Fibonacci series
What is the benefit of c++?
How can I learn c++ easily?
How many different levels of pointers are there?
What is a responder chain?
Write a program to find the reverse Fibonacci series starting from N.
What is the two main roles of operating system?
Explain some examples of operator overloading?
Explain the difference between overloading and overriding?
What is ostream in c++?
What is c++ coding?
What's the hardest coding language?
What is virtual base class uses?
What are the 3 levels of programming languages?
Why do we use setw in c++?