write program for palindrome
Answer Posted / chander singh
#include<stdio.h>
#include<conio.h>
void main()
{
int r,n,k=0,l;
printf("\n\t\tENTER THE NUMBER \t");
scanf("%d",&n);
l==n;
while(n>0)
{
r=n%10;
n=n/10;
k=k*10+r;
printf("%d",r); //
}
if(r==m)
printf("\n\t\tpalindrome");
else
printf("\n\t\t not palindrome");
getch();
}
| Is This Answer Correct ? | 16 Yes | 25 No |
Post New Answer View All Answers
Can you explicitly call a destructor on a local variable?
What is runtime errors c++?
What are the advantages of using typedef in a program?
What is data hiding c++?
What is a string example?
How a pointer differs from a reference?
What is c++ used for in games?
Is swift faster than go?
Describe public access specifiers?
In the derived class, which data member of the base class are visible?
Explain shallow copy?
What is exception handling? Does c++ support exception handling?
What is the full form of c++?
What does scope resolution operator do?
What is the use of setfill in c++?