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

Is c++ a low level language?

965


Is c++ a good beginners programming language?

1066


What is format for defining a structure?

1077


Does c++ support multilevel and multiple inheritances?

1005


What does return 0 do in c++?

1035


Define basic type of variable used for a different condition in C++?

1108


Briefly describe a B+ tree. What is bulk loading in it?

1330


Write some differences between an external iterator and an internal iterator?

1015


Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

2568


What problems might the following macro bring to the application?

1051


Why can’t you call invariants() as the first line of your constructor?

1014


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

1114


What is the type of 'this' pointer?

1016


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

1101


How can you quickly find the number of elements stored in a dynamic array?

1052