write program for palindrome
Answer Posted / jamai partha
#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)
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
List the merits and demerits of declaring a nested class in C++?
How would you use the functions memcpy(), memset(), memmove()?
How many standards of c++ are there?
Write about an iterator class?
What is pure virtual function? Or what is abstract class?
Does c++ have a hash table?
How do you flush a buffer in c++?
Where are setjmp and longjmp used in c++?
What is c++ and its uses?
Difference between an inspector and a mutator
What is the basic structure of c++ program?
How are pointers type-cast?
What is a singleton c++?
Are there any special rules about inlining?
What is the difference between c++ and turbo c++?