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
Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through data [321].
Write an algorithm that determines whether or not an almost complete binary tree is a heap.
What is stack unwinding?
Can you please explain the difference between overloading and overriding?
What is iomanip c++?
How do you find out if a linked-list has an end?
Can member data be public?
What is flush () in c++?
How do we balance an AVL Tree in C++?
What is an adaptor class or wrapper class in c++?
Do you need a main function in c++?
Describe exception handling concept with an example?
What is void pointer in c++ with example?
Define pointers?
C is to C++ as 1 is to a) What the heck b) 2 c) 10