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 / lakshmi narayana

#include<stdio.h>

main()
{
int n,s=0,m;

printf("enter any no");
scanf("%d",&n);
m=n;
while(n>0)
{
int r=n%10;
s=s*10+r;
n=n/10;
}
if(s == m) // This is important step
printf("the no is palindrome\n");
else
printf("no is not palindrome\n");
return 0;
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is ca high or low level language?

1037


What are shallow and deep copy?

1067


What does std :: flush do?

1088


What are the effects after calling the delete this operator ?

1009


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

1045


What is cout flush?

980


How can I learn c++ easily?

1031


Describe new operator?

1104


What is the difference between #import and #include in c++?

1075


What type of question are asked in GE code writing test based on c++ data structures and pointers?

3936


What is vector string in c++?

1059


Is it possible to get the source code back from binary file?

1310


Search for: what is pair in c++?

1083


What are the differences between java and c++?

1031


What is a tree in c++?

931