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

#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==s)
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

an integer constant must have atleast one a) character b) digit c) decimal point

982


What do you mean by delegate? Can a user retain delegates?

885


What is else if syntax?

1108


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

1020


What is the return value of the insertion operator?

1085


Write about the various sections of the executable image?

935


Carry out conversion of one object of user-defined type to another?

991


What are manipulators used for?

1039


What is function declaration in c++ with example?

1012


What is a class template?

1026


What are manipulators in c++ with example?

1008


Differentiate between late binding and early binding.

1202


What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h

1007


What is scope operator in c++?

1041


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

984