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

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

Is This Answer Correct ?    242 Yes 354 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does getch() do according to the ANSI C++ standard a) Reads in a character b) Checks the keyboard buffer c) Nothing in particular (Its not defined there)

1048


What is a dynamic binding in c++?

952


How many standards of c++ are there?

1092


What is searching?

1119


Discussion on error handling of C++ .

1118


Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?

1243


Can a program run without main?

1233


Are there any special rules about inlining?

1078


What is meant by entry controlled loop?

1117


What methods can be overridden in java?

1257


C is to C++ as 1 is to a) What the heck b) 2 c) 10

1057


Differentiate between an inspector and a mutator ?

1218


Define 'std'.

1173


How did c++ get its name?

1028


What is the latest version on c++?

1132