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

Why is the function main() special?

1144


Can c++ be faster than c?

1079


What is a dynamic binding in c++?

1004


What is the most useful programming language?

1108


If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?

1148


What's c++ used for?

1159


Explain terminate() and unexpected() function?

1166


What is the iunknown interface?

1182


What does namespace mean in c++?

1142


Explain the auto storage classes in c++.

1156


How many keywords are used in c++?

1063


What is polymorphism and its type in c++?

1123


What is std :: flush?

1132


In int main(int argc, char *argv[]) what is argv[0] a) The first argument passed into the program b) The program name c) You can't define main like that

1160


What is virtual base class uses?

1446