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

Differentiate between the message and method in c++?

1036


How can I improve my c++ skills?

1079


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

1143


Can constructor be private in c++?

997


Can you please explain the difference between overloading and overriding?

1050


What are function prototypes?

1203


What is an operator function? Describe the function of an operator function?

1090


What is the difference between method overloading and method overriding in c++?

1104


Why do we need c++?

997


What is helper in c++?

1053


Explain the term memory alignment?

1187


Is c++ map a hash table?

986


What is polymorphism and its type in c++?

1036


When is the copy constructor called?

1101


what is oops and list its features in c++?

1009