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
Can class objects be passed as function arguments?
When does the c++ compiler create temporary variables?
Do you know what are pure virtual functions?
Why c++ is the best language?
What is std :: endl?
Why do we use structure in c++?
What is pure virtual function?
Is c++ free?
Is c++ a programming language?
What is pair in c++?
What is the basic of c++?
Where do I find the current c or c++ standard documents?
What is setfill c++?
What is nested class in c++?
What is a c++ map?