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 is a rooted hierarchy?
Why struct is used in c++?
write a corrected statement in c++ so that the statement will work properly. x = y = z + 3a;
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
Differentiate between a copy constructor and an overloaded assignment operator.
Which bit wise operator is suitable for turning off a particular bit in a number?
What does new return if there is insufficient memory to make your new object?
What are the c++ access specifiers?
Can you declare an array without a size in c++?
Is dev c++ a good compiler?
Describe the setting up of my member functions to avoid overriding by the derived class?
What are inline functions? What is the syntax for defining an inline function?
What is conditions when using boolean operators?
What is ios :: in in c++?
What are the restrictions apply to constructors and destructors?