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

#include,studio.h>
#include<conio.h>
void main()
{
int num,mod,rev=0;
clrscr();
printf("Enter any no:");
scanf("%d",&n);
while(n>=0)
{
mod=n%10;
rev=rev*10+mod;
n=n/10;
}
if(rev=n)
{
printf("palindrome");
}
else
{
printf("not palindrome");
}
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between #import and #include?

1062


How do you clear a map in c++?

1137


what are the events occur in intr activated on interrupt vector table

1758


Explain about Garbage Collector?

1129


What is function declaration in c++ with example?

1112


What is c++ library?

1048


Is c++ still in demand?

1158


Difference between an inspector and a mutator

1347


Is c++ a low level language?

977


What relational operators if statements in c++?

1183


What is the difference between method overloading and method overriding in c++?

1157


Will c++ be replaced?

1053


When should I use unitbuf flag?

1027


What is const pointer and const reference?

1173


What is the purpose of the "delete" operator?

1072