write program for palindrome

Answers were Sorted based on User's Feedback



write program for palindrome..

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

Post New Answer

More C++ General Interview Questions

In how many ways we can initialize an int variable in C++?

1 Answers  


What apps are written in c++?

0 Answers  


What are the types of container classes?

0 Answers  


Describe new operator and delete operator?

0 Answers  


Explain the register storage classes in c++.

0 Answers  






What is general form of pure virtual function? Explain?

0 Answers  


Definition of class?

12 Answers  


Can non-public members of another instance of the class be retrieved by the method of the same class?

0 Answers  


write a program to add two numbers without using an arithmetic operator.

1 Answers   NIIT,


Name the operators that cannot be overloaded in C++?

0 Answers   Fidelity,


What is the protected keyword used for?

0 Answers  


What is the best c c++ compiler for windows?

0 Answers  


Categories