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

#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(s == m) // This is important step
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}

Is This Answer Correct ?    242 Yes 88 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of cmath in c++?

1060


How do you decide which integer type to use?

1003


What is a multimap c++?

1197


Which of the following is evaluated first: a) && b) || c) !

2364


Why struct is used in c++?

1118


What is #include math h in c++?

1079


Is there structure in c++?

1024


Explain Text Manipulation Routines?

1076


what is c++

2381


When must you use a pointer rather than a reference?

1031


Which bitwise operator is used to check whether a particular bit is on or off?

1056


Differentiate between an external iterator and an internal iterator?

994


Mention the purpose of istream class?

1105


What is dev c++ used for?

1033


What is function overriding in c++?

1065