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 / hillol bhattacharya

#include<stdio.h>
#include<conio.h>
void main()
{
int n,s=0,m,r;
clrscr();
printf("enter any no");
scanf("%d",&n);
m=n;
while(n>0)
{
r=n%10;
s=s*10+r;
n=n/10;
}
if(m==n)
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the various oops concepts in c++?

1053


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

1126


What is the extension of c++?

991


What is constructor in C++?

1099


Do you know what are static and dynamic type checking?

1071


Does c++ have a hash table?

1009


Explain deep copy?

1067


How will you call C functions from C ++ and vice-versa?

1148


What is an iterator class in c++?

1147


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

1197


Explain this pointer?

1076


Do vectors start at 0?

997


Explain how an exception handler is defined and invoked in a Program.

1184


Differentiate between late binding and early binding. What are the advantages of early binding?

1041


What is linked list in c++?

1141