write program for palindrome
Answer Posted / varun tiwari
#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(s == m)
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What happens when the extern "c" char func (char*,waste) executes?
What are default parameters? How are they evaluated in c++ function?
How do you traverse a btree in backward in-order?
Describe delete operator?
Write about the retrieval of n number of objects during the process of delete[]p?
Describe the syntax of single inheritance in C++?
How do you declare A pointer to a function which receives nothing and returns nothing
Explain explicit container.
Why is null pointer used?
Is c++ faster than c?
List different attributes in C++?
Explain the differences between list x; & list x();.
Explain one-definition rule (odr).
What kind of jobs can I get with c++?
What are the advantages of c++ over c?