write program for palindrome
Answer Posted / felix
#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(m==n)
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}
| Is This Answer Correct ? | 242 Yes | 354 No |
Post New Answer View All Answers
State the difference between delete and delete[].
What do you mean by translation unit in c++?
Describe the advantage of an external iterator.
Can I learn c++ without c?
If a header file is included twice by mistake in the program, will it give any error?
What is tellg () in c++?
Should the member functions which are made public in the base class be hidden?
What is a c++ map?
Explain the difference between overloading and overriding?
What is the difference between prefix and postfix versions of operator++()?
How would you use the functions randomize() and random()?
What are the benefits of oop in c++?
What is the difference between c++ and turbo c++?
Can char be a number c++?
Where the memory to the static variables is allocated?