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

How can I find out how much free space is available on disk?

1063


What does p mean in physics?

1052


Compare array data type to pointer data type

1044


What are the uses of null pointers?

1139


Is c is a high level language?

1203


What is a char c?

1052


How variables are declared in c?

1057


How many levels deep can include files be nested?

1150


Can a variable be both constant and volatile?

1135


Differentiate between full, complete & perfect binary trees.

1126


What is the condition that is applied with ?: Operator?

1137


What type is sizeof?

1048


How can I invoke another program (a standalone executable, or an operating system command) from within a c program?

1224


can anyone suggest some site name..where i can get some good data structure puzzles???

2090


What is default value of global variable in c?

999