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 Program to find the largest of 4 no using macros.

1083


How many types of comments are there in c++?

989


Why we use #include iostream in c++?

1058


What are the four partitions in which c++ compiler divides the ram?

1236


Which c++ compiler is best?

1160


Differentiate between a constructor and a method in C++.

1061


What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack

1087


Name four predefined macros.

1042


What are the characteristics of friend functions?

1026


If you don’t declare a return value, what type of return value is assumed?

958


What is setfill c++?

1159


How do you clear a map in c++?

1129


What is the difference between cin.read() and cin.getline()?

1083


When should overload new operator on a global basis or a class basis?

1081


Are there any special rules about inlining?

1085