write program for palindrome
Answers were Sorted based on User's Feedback
Answer / felix
#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 ? | 242 Yes | 354 No |
Please explain the reference variable in c++?
What is the use of dot in c++?
Does std endl flush?
What are the different data types present in C++?
What are the advantages of using a pointer?
What are the popular tools used to detect memory leaks in c++
Why namespace is used in c++?
What are its advantages and disadvantages of multiple inheritances (virtual inheritance)?
When volatile can be used?
What are the syntactic rules to be avoid ambiguity in multiple inheritance?
What are the types of container classes?
Explain mutable storage class specifier.