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 are the 4 types of library?
What is c++ redistributable?
Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.
How does the copy constructor differ from the assignment operator (=)?
What is expression parser in c++
What happens when the extern "c" char func (char*,waste) executes?
Where do I find the current c or c++ standard documents?
What flag means?
How to give an alternate name to a namespace?
Can we use this pointer inside static member function?
What is encapsulation in C++? Give an example.
What are the benefits of c++?
What does n mean in c++?
What is the difference between set and map in c++?
What is the difference between the indirection operator and the address of oper-ator?