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

How do I use arrays in c++?

968


What does the following do: for(;;) ; a) Illegal b) Loops forever c) Ignored by compiler...not illegal

1134


How can a called function determine the number of arguments that have been passed to it?

1104


How do you invoke a base member function from a derived class in which you have not overridden that function?

1084


What is the most common mistake on c++ and oo projects?

943


What is pointer with example?

995


Do you know what is overriding?

1132


What are the advantages of c++? Explain

1028


Does c++ have foreach?

1005


What are the advantages of using const reference arguments in a function?

1043


Is there a c++ certification?

1004


Why is c++ considered difficult?

1109


What do you know about near, far and huge pointer?

1085


Which is most difficult programming language?

1052


Can a program run without main in c++?

1150