write program for palindrome
Answer Posted / hillol bhattacharya
#include<stdio.h>
#include<conio.h>
void main()
{
int n,s=0,m,r;
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 ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why #include is used?
What are the types of pointer?
Which compiler does turbo c++ use?
How do I use arrays in c++?
Which should be more useful: the protected and public virtuals?
How the endl and setw manipulator works?
What are stacks? Give an example where they are useful.
Write about the local class and mention its use?
Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort
Write a program to find the Factorial of a number
Which ide is best for c++?
Is c++ the most powerful language?
What is a local reference?
What is searching? Explain linear and binary search.
What is the main purpose of overloading operators?