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 / kumaran

int a,n,s,x=0;
a=n;
while(n>0)
{
s=n%10;
x=x*10+s;
n=n/10;
}
if(a=n)
printf("palindrome");
else
printf("not palindrome");

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why would you use pointers in c++?

1146


What is the purpose of the "delete" operator?

1055


What do you mean by function overriding & function overloading in c++?

1174


Describe new operator and delete operator?

1080


Explain the static member function.

1177


What is the difference between #import and #include?

1049


what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?

2351


What is the real purpose of class – to export data?

1106


What are the differences between new and malloc?

1121


Explain abstraction.

1108


What do you understand by a pure virtual member function?

1003


What is function overloading c++?

1074


What is general form of pure virtual function? Explain?

994


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

967


Name the implicit member functions of a class.

1078