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 |
In how many ways we can initialize an int variable in C++?
What apps are written in c++?
What are the types of container classes?
Describe new operator and delete operator?
Explain the register storage classes in c++.
What is general form of pure virtual function? Explain?
Definition of class?
Can non-public members of another instance of the class be retrieved by the method of the same class?
write a program to add two numbers without using an arithmetic operator.
Name the operators that cannot be overloaded in C++?
What is the protected keyword used for?
What is the best c c++ compiler for windows?