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

Does c++ support multilevel and multiple inheritances?

1016


Write a program using display() function which takes two arguments.

1089


What are pointer-to-members in C++? Give their syntax.

1146


What would happen on forgetting [], while deallocating an array through new?

1098


How do I tokenize a string in c++?

1109


How do you define/declare constants in c++?

1057


Do the names of parameters have to agree in the prototype, definition, and call to the function?

1034


What is a multiset c++?

1157


Are php strings immutable?

1065


what is multi-threading in C++?

1061


Explain one-definition rule (odr).

1126


What does iomanip mean in c++?

1211


How does c++ structure differ from c++ class?

1145


What is a multimap c++?

1219


Will this c++ program execute or not?

1105