write program for palindrome
Answer Posted / apoorv
#include<stdio.h>
#include<conio.h>
int main()
{
long int n,s=0,m,r;
printf("enter any no");
scanf("%ld",&n);
m=n;
while(n>0)
{
r=n%10;
s=s*10+r;
n=n/10;
}
if(m==s)
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What does namespace mean in c++?
What are references in c++?
Explain one method to process an entire string as one unit?
Explain selection sorting?
What is the history of c++?
what is C++ exceptional handling?
What is pointer -to-members in C++? Give their syntax?
Write about the role of c++ in the tradeoff of safety vs. Usability?
What are separators in c++?
What are function prototypes?
When we use Abstract Class and when we use Interface?where we will implement in real time?
What is this weird colon-member (" : ") syntax in the constructor?
Write a program to concatenate two strings.
How come you find out if a linked-list is a cycle or not?
Which programming language should I learn first?