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

#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(s == m) // This is important step
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 the use of endl?

1031


What are different types of loops in c++?

1177


What is expression parser in c++

2560


Difference between delete and free.

1135


What operator is used to access a struct through a pointer a) >> b) -> c) *

1162


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

995


What is the difference between a type-specific template friend class and a general template friend class?

1032


What happens when you make call 'delete this;'?

1152


What is the identity function in c++? How is it useful?

1096


Is c++ platform dependent?

1140


What is a responder chain?

1111


What's the hardest coding language?

1067


List the issue that the auto_ptr object handles?

1074


What is different in C++, compare with unix?

1154


What are the rules for naming an identifier?

1121