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 / md.irfan(rourkela)

#include<stdio.h>
#include<conio.h>
void main()
{
int n,s=0,m;
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 ?    1204 Yes 747 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Will a catch statement catch a derived exception if it is looking for the base class?

957


How do I download c++?

961


Does improper inheritance have a potential to wreck a project?

1083


Does c++ vector allocate memory?

937


Which is not an ANSII C++ function a) sin() b) tmpnam() c) kbhit()

1464


How can you link a c program with a c function?

997


Write a program to concatenate two strings.

1027


what are the iterator and generic algorithms.

1908


Explain deep copy?

992


Define a nested class. Explain how it can be useful.

1035


What is the maximum combined length of command line arguments including the space between adjacent arguments?

953


Why do we need templates?

946


What is an adaptor class in c++?

1083


What is the use of seekg in c++?

990


What is an iterator class in c++?

1088