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 / saurav sadangi

#include<stdio.h>

int main(){
int n,s=0,r,m;
printf("Enter m:- ");
scanf("%d",&m);

n=m;

while(m>0){
r=m%10;
s=(s*10)+r;
m/=10;
}
printf("The reverse no is %d\n",s);

if (s==n)
printf("%d is pallendrom.\n",n);
else
printf("%d is not pallendrom.\n",n);

system("PAUSE");
return 0;
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is map thread safe c++?

1076


How do you compile the source code with your compiler?

1051


What is c++ runtime?

1103


Describe new operator?

1157


Can I have a reference as a data member of a class? If yes, then how do I initialise it?

1221


Explain bubble sorting.

1083


Mention the storage classes in c++.

1078


Why cout is used in c++?

1024


What kind of jobs can I get with c++?

1112


Is c++ map a hash table?

1019


How would you call C functions from C++ and vice versa?

1166


What is the function of I/O library in C++ ?

1188


What is the equivalent of Pascal's Real a) unsigned int b) float c) char

1014


What is a null object in c++?

1224


Can circle be called an ellipse?

1075