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...

palindrome for strings and numbers----Can anybody do the
prog?

Answer Posted / dally

#include<stdio.h>
int main()
{
int n,sum=0,temp;
printf("Enter nuber\n");
scanf("%d",&n);
temp = n;
while(n>1)
{
n = n%10;
sum = n + sum*10;
n = n / 10;
}
if(temp == sum)
printf("Given number is polindram\n");
else
printf("Given number is not polindram\n");

}

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Who developed c language and when?

1137


Explain what is the difference between the expression '++a' and 'a++'?

1265


Differentiate between declaring a variable and defining a variable?

1091


What are the different properties of variable number of arguments?

1204


Is sizeof a keyword in c?

1016


Which is an example of a structural homology?

1379


What are the restrictions of a modulus operator?

1167


What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.

2308


What is a c token and types of c tokens?

1128


What does %c mean in c?

1142


Can a variable be both static and volatile in c?

1082


What is far pointer in c?

1393


Is malloc memset faster than calloc?

1131


What is difference between Structure and Unions?

1311


When should a type cast be used?

1065