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 / katta shravan kumar

#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;
n=n/10;
s=n*10+r;
}
if(m==n)
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

What is a rooted hierarchy?

1219


Why struct is used in c++?

1177


write a corrected statement in c++ so that the statement will work properly. x = y = z + 3a;

1949


Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work

1130


Differentiate between a copy constructor and an overloaded assignment operator.

1140


Which bit wise operator is suitable for turning off a particular bit in a number?

1163


What does new return if there is insufficient memory to make your new object?

1084


What are the c++ access specifiers?

1480


Can you declare an array without a size in c++?

1065


Is dev c++ a good compiler?

1014


Describe the setting up of my member functions to avoid overriding by the derived class?

1194


What are inline functions? What is the syntax for defining an inline function?

1213


What is conditions when using boolean operators?

1311


What is ios :: in in c++?

1112


What are the restrictions apply to constructors and destructors?

1123