write program for palindrome
Answer Posted / md.irfan(rourkela)
#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;
s=s*10+r;
n=n/10;
}
if(m==n)
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}
Is This Answer Correct ? | 1204 Yes | 747 No |
Post New Answer View All Answers
How do you differentiate between overloading the prefix and postfix increments?
What is near, far and huge pointers? How many bytes are occupied by them?
Can we distribute function templates and class templates in object libraries?
What is problem with overriding functions?
What is abstract class in c++?
What is the use of bit fields in structure declaration?
Differentiate between a copy constructor and an overloaded assignment operator.
Explain the scope of resolution operator.
Where must the declaration of a friend function appear?
How come you find out if a linked-list is a cycle or not?
Explain the isa and hasa class relationships. How would you implement each?
What do manipulators do?
What will happen if a pointer is deleted twice?
What is the C-style character string?
How do I write a c++ program?