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

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

Is This Answer Correct ?    199 Yes 137 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between a homogeneous and a heterogeneous container

1139


What is ostream in c++?

1009


Discuss the effects occur, after an exception thrown by a member function is unspecified by an exception specification?

1070


Why was c++ created?

1026


Will the following program execute?

1030


Why do we use using namespace std in c++?

1074


List the merits and demerits of declaring a nested class in C++?

1021


What are the two types of comments?

993


Do you know the use of vtable?

1130


Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?

1073


What you know about structures in C++?

1073


What is == in programming?

1009


What is c++ in english?

1065


Differentiate between realloc() and free().

1043


Why c++ is so important?

1077