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

the maximum length of a character constant can be a) 2 b) 1 c) 8

1098


What is the best c++ book for beginners?

1155


Why is c++ still best?

984


which operator is used for performing an exponential operation a) > b) ^ c) none

1066


Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list

1004


Difference between pointer to constant and constant pointer to a constant. Give example.

1128


What is class invariant in c++?

1235


Is c++ a programming language?

1084


Can we define a constructor as virtual in c++?

1129


Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers

1055


What is the use of pointer in c++ with example?

1048


What is c++ programming language?

1108


What is an inline function in c++?

1119


What is the difference between global int and static int declaration?

1067


Specify different types of decision control statements?

859