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
Will a catch statement catch a derived exception if it is looking for the base class?
How do I download c++?
Does improper inheritance have a potential to wreck a project?
Does c++ vector allocate memory?
Which is not an ANSII C++ function a) sin() b) tmpnam() c) kbhit()
How can you link a c program with a c function?
Write a program to concatenate two strings.
what are the iterator and generic algorithms.
Explain deep copy?
Define a nested class. Explain how it can be useful.
What is the maximum combined length of command line arguments including the space between adjacent arguments?
Why do we need templates?
What is an adaptor class in c++?
What is the use of seekg in c++?
What is an iterator class in c++?