write program for palindrome
Answer Posted / katta shravan kumar
#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;
n=n/10;
s=n*10+r;
}
if(m==n)
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are single and multiple inheritances in c++?
Explain the operation of overloading of an assignment operator.
Which bitwise operator is used to check whether a particular bit is on or off?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
What do you mean by storage classes?
What is meant by entry controlled loop?
What are the c++ access specifiers?
What is c++ in english?
What is the difference between interpreters and compilers?
What is the difference between containment and delegation?
What is the use of setfill in c++?
How does list r; differs from list r();?
What is a wchar_t in c++?
What is a singleton class c++?
What is c++ map?