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

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

Is This Answer Correct ?    172 Yes 77 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use setw in c++?

1072


State two differences between C and C++.

1114


What do you mean by funtion prototype?

1027


What are static type checking?

1022


What can I safely assume about the initial values of variables which are not explicitly initialized?

1028


What is pointer to member?

1042


What is vectorial capacity?

1132


What is static function? Explain with an example

1019


What is & in c++ function?

1021


How we can differentiate between a pre and post increment operators during overloading?

1066


Describe about storage allocation and scope of global, extern, static, local and register variables?

1215


What are references in c++? What is a local reference?

1000


What is c++ array?

1053


Write about an iterator class?

1042


Do the parentheses after the type name make a difference with new?

1048