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

#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 == n) // This is important step
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}

Is This Answer Correct ?    199 Yes 137 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How would you differentiate between a pre and post increment operators while overloading?

1077


What do you mean by early binding?

1010


What are guid? Why does com need guids?

1009


What is object in c++ wikipedia?

941


What would happen on forgetting [], while deallocating an array through new?

1029


What does ios :: app do in c++?

962


What is c++ redistributable?

1167


Is map ordered c++?

1041


What are the restrictions apply to constructors and destructors?

1028


Differentiate between a constructor and a destructor in c++.

968


Does dev c++ support c++ 11?

963


Define 'std'.

1124


What is setf in c++?

1044


Why do we use classes in programming?

986


What is meant by iomanip in c++?

1125