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

#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;
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 ?    242 Yes 88 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When you overload member functions, in what ways must they differ?

1062


Can you please explain the difference between static and dynamic binding of functions?

1042


Explain the difference between overloading and overriding?

1151


Mention the purpose of istream class?

1119


Write is a binary search tree? Write an algo and tell complexity?

1029


Which compiler does turbo c++ use?

1087


declare an array of structure where the members of the structure are integer variable float variable integer array char variable access all elements of the structure using dot operator and this pointer operator

2367


Can non-public members of another instance of the class be retrieved by the method of the same class?

1093


What are built-in functions? What is the syntax for the definition?

1094


When must you use a pointer rather than a reference?

1049


How do you establish a has-a relationship?

1125


What is fflush c++?

1037


What is microsoft c++ redistributable?

1108


What is the use of endl?

992


What is the use of pointer in c++ with example?

1054