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

#include<stdio.h>
#include<conio.h>
int main()

{
long int n,s=0,m,r;
printf("enter any no");
scanf("%ld",&n);
m=n;
while(n>0)
{
r=n%10;
s=s*10+r;
n=n/10;
}
if(m==s)
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a programme to get a character and thier ASCII value

3041


Why is "using namespace std;" considered bad practice?

1091


Give 10 points of differences between C & C++.

1140


Write my own zero-argument manipulator that should work same as hex?

1049


What is this pointer in c++?

1392


What is boyce codd normal form in c++?

1156


Is map thread safe c++?

1076


What is the auto keyword good for in c++?

1185


Does there exist any other function which can be used to convert an integer or a float to a string?

1073


What is the use of turbo c++?

1048


What is name hiding in c++?

1154


What is class in c++ with example?

1257


Explain about Garbage Collector?

1117


What is near, far and huge pointers? How many bytes are occupied by them?

1115


Is sorted c++?

1102