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
What is runtime polymorphism in c++?
What are the manipulators in c++?
How would you differentiate between a pre and post increment operators while overloading?
Why c++ is the best language?
Is c++ slower than c?
Do vectors start at 0 c++?
Explain how we implement exception handling in c++?
Explain the scope of resolution operator.
How do you show the declaration of a virtual constructor?
What is the full form of ios?
List the types of polymorphism in c++?
What is a base class?
Will rust take over c++?
What is a map in c++?
How can we read/write Structures from/to data files?