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

What c++ is used for?

1011


Who was the creator of c++?

994


Write a C++ Program to check whether a number is prime number or not?

1060


What is general format for a prototype?

974


Refer to a name of class or function that is defined within a namespace?

1048


Can a function take variable length arguments, if yes, how?

960


What are pointer-to-members? Explain.

1067


What is an overflow error?

1048


What doescout<<(0==0) print out a) 0 b) 1 c) Compiler error: Lvalue required

930


Explain how a pointer to function can be declared in C++?

978


Show the declaration for a pointer to function returning long and taking an integer parameter.

1064


Where the memory to the static variables is allocated?

1002


What are activex and ole?

1007


How much do c++ programmers make?

1056


Is overriding possible in c++?

952