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 / vijay kumar

#include<stdio.h>
#include<conio.h>
void main()
{
int n,rev=0,m,r;
clrscr();
printf("enter any no");
scanf("%d",&n);
m=n;
while(n>0)
{
r=n%10;
rev=rev*10+r;
n=n/10;
}
if(rev == m) // This is important step
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 is the full form of dos?

1080


Do vectors start at 0 c++?

998


What is setbase c++?

1074


Describe the setting up of my member functions to avoid overriding by the derived class?

1098


When can I use a forward declaration?

1053


What is singleton class in c++?

1015


What is data type in c++?

985


Why do we use classes in programming?

1001


What is #include iostream h in c++?

1113


How c functions prevents rework and therefore saves the programers time as wel as length of the code ?

1051


Describe new operator and delete operator?

1044


What are manipulators used for?

1059


What are the unique features of C++.

1044


What happens when you make call 'delete this;'?

1042


What does scope resolution operator do?

1074