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 / muhammad umair arif

#include <iostream>
using namespace std;
void main()
{
int a,b,c,d,e,f;
cout<<"Enter three digit "<<endl;
cin>>a;
b=a/100;
c=a%100;
d=c/10;
e=c%10;
f=e;
if(f==b)
{
if(d==d)
{
if (b==f)

{
cout<<"It is Palindrome "<<endl;
}
}
}
else
cout<<"It isnot Palindrome "<<endl;
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a programme to get a character and thier ASCII value

3113


Does c++ have string data type?

1163


Define whitespace in C++.

1270


What is the maximum combined length of command line arguments including the space between adjacent arguments?

1038


What is null and void pointer?

1109


What are member functions used in c++?

1208


How does a copy constructor differs from an overloaded assignment operator?

1082


What does catch(…) mean?

1169


Can constructor be private in c++?

1085


What is c++ try block?

1088


Why is c++ difficult?

1110


What is setf in c++?

1145


What is command line arguments in C++? What are its uses? Where we have to use this?

1356


What is abstraction in c++ with example?

1206


What is the main use of c++?

1166