Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

write program for palindrome

Answer Posted / badsha

#include<iostream.h>
void main()
{
int m=0,n,s=0,r;
cout<<"Enter any number :"<<endl;
cin>>n;
m=n;
while(n>0)
{
r=n%10;
s=s*10+r;
n=n/10;
}
if(m==s)
{
cout<<"it is palindrom :"<<endl;
}
else
{
cout<<"No is Not palindrom :"<<endl;
}
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is encapsulation in C++? Give an example.

1152


What is the history of c++?

1133


What are the stages in the development cycle?

1110


What are default parameters? How are they evaluated in c++ function?

1223


What are the c++ access specifiers?

1480


What is the hardest coding language to learn?

1088


What is a unnitialised pointer?

1138


In the derived class, which data member of the base class are visible?

1161


If I is an integer variable, which is faster ++i or i++?

1134


What is the purpose of template?

1169


How does c++ sort work?

1026


Explain how to initialize a const data member.

1178


What is #include ctype h in c++?

1220


What is the difference between public, private, and protected access?

1129


What's c++ used for?

1159