write program for palindrome
Answer Posted / md.irfan(rourkela)
#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 ? | 1204 Yes | 747 No |
Post New Answer View All Answers
How to access a variable of the structure?
Which operator cannot be overloaded c++?
How do you add an element to a set in c++?
Explain deep copy?
Explain about Garbage Collector?
What are multiple inheritances (virtual inheritance)?
What is stream and its types in c++?
What is a literal in c++?
Which field is used in c++?
When can I use a forward declaration?
What is meant by a delegate?
What do you mean by translation unit in c++?
How do I exit turbo c++?
What are move semantics?
Explain virtual destructor?