write program for palindrome
Answer Posted / dude
#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(s == n) // This is important step
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}
| Is This Answer Correct ? | 199 Yes | 137 No |
Post New Answer View All Answers
How would you differentiate between a pre and post increment operators while overloading?
What do you mean by early binding?
What are guid? Why does com need guids?
What is object in c++ wikipedia?
What would happen on forgetting [], while deallocating an array through new?
What does ios :: app do in c++?
What is c++ redistributable?
Is map ordered c++?
What are the restrictions apply to constructors and destructors?
Differentiate between a constructor and a destructor in c++.
Does dev c++ support c++ 11?
Define 'std'.
What is setf in c++?
Why do we use classes in programming?
What is meant by iomanip in c++?