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 / hillol bhattacharya

#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(m==n)
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

Is swift faster than c++?

1017


What does new do in c++?

1068


When should overload new operator on a global basis or a class basis?

1077


Write about a nested class and mention its use?

1094


What are the advantages of inheritance in c++?

1098


Why isn't sizeof for a struct equal to the sum of sizeof of each member?

991


What is meaning of in c++?

1211


What is c++ library?

1031


Why cstdlib is used in c++?

1037


Explain linear search.

1051


what is pre-processor in C++?

1154


What is stl containers in c++?

1047


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

1081


When does a name clash occur in c++?

1164


what is the difference between overloading & overriding? give example.

1178