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

How much do coding jobs pay?

0 Answers  


What is a catch statement?

0 Answers  


Why is c++ still used?

0 Answers  


What is function overriding?

1 Answers  


What are different types of loops in c++?

0 Answers  






What is the use of volatile variable?

0 Answers  


a class that maintains a pointer to an object that is programatically accessible through the public interface is known as?

2 Answers   CTS,


What is slicing?

1 Answers  


In c++, what is the difference between method overloading and method overriding?

0 Answers  


Why was c++ made?

0 Answers  


What is a tree in c++?

0 Answers  


Differentiate between a pointer and a reference with respect to c++.

0 Answers  


Categories