write program for palindrome
Answer Posted / kumaran
int a,n,s,x=0;
a=n;
while(n>0)
{
s=n%10;
x=x*10+s;
n=n/10;
}
if(a=n)
printf("palindrome");
else
printf("not palindrome");
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Where must the declaration of a friend function appear?
Which c++ compiler is best?
What is the difference between a declaration and a definition?
What is a c++ map?
Can I learn c++ without knowing c?
What are c++ tokens?
Write about the access privileges in c++ and also mention about its default access level?
Describe linkages and types of linkages?
What is prototype in c++ with example?
Can notepad ++ run c++?
Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work
What is null c++?
Explain linear search.
what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?
What is the extraction operator and what does it do?