write program for palindrome
Answer Posted / sowmya
#include,studio.h>
#include<conio.h>
void main()
{
int num,mod,rev=0;
clrscr();
printf("Enter any no:");
scanf("%d",&n);
while(n>=0)
{
mod=n%10;
rev=rev*10+mod;
n=n/10;
}
if(rev=n)
{
printf("palindrome");
}
else
{
printf("not palindrome");
}
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Differentiate between an inspector and a mutator ?
What is algorithm in c++ programming?
What is c++ try block?
What is a singleton c++?
What is == in programming?
Write about all the implicit member functions of a class?
Is empty stack c++?
What is a dll entry point?
can any one help to find a specific string between html tags
which is changed to a sting..
weather.html looks (for location) is
What are c++ manipulators? What is function overriding in c++? What will the line of code below print out and why? What is the full form of ios? Write a function to perform the substraction of two numbers. Eg: char N1="123", N2="478", N3=-355(N1-N2). what is Loop function? What are different types of Loops?