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 / deepa garia

#include<stdio.h>
#include<conio.h>
int main()
{
int r,n,k=0,l;
printf("\nENTER THE NUMBER ");
scanf("%d",&n);
l=n;
while(n>0)
{
r=n%10;
n=n/10;
k=k*10+r;
printf("%d",r);
}
if(k==l)
printf("\npalindrome");
else
printf("\n not palindrome");
getch();
return 0;
}

Is This Answer Correct ?    16 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you Mention some Application of C/C++?

1073


Differentiate between a template class and class template in c++?

1097


How do I use arrays in c++?

1002


Is c++ double?

1030


Does a derived class inherit or doesn't inherit?

1087


How are the features of c++ different from c?

1088


Explain the volatile and mutable keywords.

1066


What is iterator c++?

983


Explain friend class?

1125


Write my own zero-argument manipulator that should work same as hex?

1053


In c++, what is the difference between method overloading and method overriding?

1137


What is the use of data hiding?

1015


Specify different types of decision control statements?

850


What is data hiding c++?

1039


What is object in c++ example?

1106