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 / katta shravan kumar

#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;
n=n/10;
s=n*10+r;
}
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

What gives the current position of the put pointer?

942


Define a constructor - what it is and how it might be called (2 methods)?

1064


What is pointer to member?

1015


What is the need of a destructor? Explain with the help of an example.

960


Is c++ a difficult language?

1047


What is name hiding in c++?

1110


If a base class declares a function to be virtual, and a derived class does not use the term virtual when overriding that class, is it still virtual when inherited by a third-generation class?

990


What are the stages in the development cycle?

989


Write a program to interchange 2 variables without using the third one.

1007


Why is c++ considered difficult?

1096


Can manipulators fall in love?

961


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

1031


What is the role of static keyword for a class member variable?

1031


what is data abstraction in C++?

1029


What is c++ mutable?

1083