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

When is the copy constructor called?

1101


What is #include iostream in c++?

1020


Is map thread safe c++?

1037


Write about the members that a derived class can add?

946


What is the difference between public and private data members?

1133


What is meant by iomanip in c++?

1148


What is private, public and protected inheritance?

1054


What is string in c++ programming?

1127


Is turbo c++ free?

1034


Explain what data encapsulation is in c++?

1053


What are the uses of typedef in a program?

1050


What are namespaces in c++?

1048


what is the difference between overloading & overriding? give example.

1125


Write about the local class and mention its use?

1029


What is constructor c++?

1081