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

What is anonymous object in c++?

1036


What are the c++ access specifiers?

1348


What is the meaning of c++?

968


How did c++ get its name?

982


What do you mean by late binding?

1058


What is a manipulator in c++?

1174


what is the use of void main() in C++ language?

1065


What is the use of pointer in c++ with example?

984


Is c++ a high level language?

947


Can you please explain the difference between using macro and inline functions?

1000


Can comments be longer than one line?

1023


Explain virtual class and friend class.

999


Is c++ harder than java?

1008


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

1202


Differentiate between an inspector and a mutator ?

1158